-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Switch between editors while editing the post #9247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
When new post, only working OK when starting it from the main screen.
When restarting the editor Activity, the temptorary local post record has been deleted so, the local id passed around is invalid. Let's pass the "inNewPost" flag as well.
While at it, simpler implementation.
I think I've found another testing scenario that does't switch the editor properly. To test B_1: Edited: Turn on Don't keep activities
This is because I tried by selecting another site, and repeated the steps above, but I guess this is because the Don't keep activities flag does terminate |
When "Don't keep Activities" is ON, the instance var (mSelectedSite) is not avail when onActivityResult is called so, better to get it from the intent extras.
Nice catch @daniloercoli ! Fixed with 5db8e73. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run another round of testing and works good.
LGTM!
Fixes #9037
This PR adds the ability to switch between Aztec and Gutenberg while editing the post/page.
Implementation details:
EditPostActivity
is let to finish and then we restart it with some proper flagsTo test A:
To test B:
To test C:
To test D:
Same as A but for pages.
Update release notes:
RELEASE-NOTES.txt
.