-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Broken Ghost Kit blocks in multisite with editor role #114
Comments
Hey nk,
the divider stays editable, the star iconbox is broken and the "This block contains unexpected or invalid content." message appears. Greets spencer |
Update on this bug, our team is experiencing the same issue and we have some notes on replicating it:
|
For further testing: most probably |
Thank you for the response. After installing the plugin from that article, the blocks we were having difficulty saving with administrator and editor roles were able to save properly. That resolved our issue, thank you! |
thank you, so this is no ghostkit bug, it's due wordpress security |
@spencer-j we need to keep this issue open. Maybe in future updates, we can find a workaround. |
@nk-o sorry missed your comment |
I found a workaround that can be enacted plugin side. The trick is to find the content that is being filtered out which are mostly just SVG tags. Then replace them with a div with a class that can be found later. Then have that content load client-side with some JavaScript. This slows down the display of the SVGs, but it'll at least show, and multi-site users won't have to call super admins to recover the block all the time. I looked through the JetPack block code after learning how to build gutenberg blocks, and that's pretty much what they're doing as well. |
Hello ghostkit team,
got a strange multsite/network bug with ghoskit.
Editing ghostkit blocks as admin, everything works fine.
But as user with editor role, i can open the page editing and saving everthing seems fine. (in Frontend Content is already brocken)
When i leave to the page list and return to the gutenberg edit screen, the existing ghostkit content is somehow damaged and in place of the ghostkit blocks the message.
"This block contains unexpected or invalid content."
with the Resolve and Convert to HTML Buttons is shown.
As said with superadmin and admin User everthing works fine.
Allready tested every constallation with clean and latest wp, ghostkit and twentytwelve installation
Greets spencer.
The text was updated successfully, but these errors were encountered: