Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I thought I'd make my work so far available to anyone who wants to continue figuring out gutenblocks for Mobile stories.
This PR:
composer install
script to copy the Mobile Stories plugin to the right directory in the theme so the WordPress editor can find it where it expects it to be.Gotchas
To update the plugin, I would
cd
into the Mobile Stories plugin root directory and runnpm start
so that it compiled automatically as I was working on it. However with each change I wanted to see in the editor, I needed to runcomposer install
again to copy that version to the right plugins directory. I'm certain this can be improved, it was just the workaround I have for now to keep the plugin in the theme.This branch currently has a bug where once you save content in the gutenblock and refresh the page, the editor says an external source changed the plugin and prevents you from using the dynamic UI (you can only edit it as HTML). I think it's because the
save
function's output is a little different from theedit
, but I haven't fully tracked it down yet. More light reading here:WordPress/gutenberg#6856
WordPress/gutenberg#7604