Gutenberg: Lock down TinyMCE to support blocks like Table etc.

Created on 5 Oct 2017  路  8Comments  路  Source: WordPress/gutenberg

[Type] Question

All 8 comments

@androb Could you elaborate? Doesn't it already support that?

Sorry @iseulde - would love your insights actually. I had heard we needed TinyMCE to behave better when it was used on a dedicated block such as Tables or lists. But I could be wrong, it could be working just fine?

I guess I'm lacking some context here. What's behave better? Any issues or conversations to link to?

Well the support for setting the base element of editing to a table (and not allow for anything outside of that) is more of a hack than a supported solution, TinyMCE was not built to do that. The thought was to make that type of limited locking (tables, lists even images) some proper support in the core, otherwise it is tricky to track down issues with this, if it isn't UNIT tested etc.

Ah, that makes sense, thanks! We also make use of forced_root_block there, which wasn't guaranteed to work properly last time I checked?

That is correct, those types of implementations have been kind of experimental, so the idea here was to revisit this from the ground up and provide proper support for it.

@androb as discussed in last week's bug scrub, we're opting to close this Issue as these blocks are working as intended but if you disagree then we can discuss further what changes may be needed.

No problem @jeffpaul - sorry I have been eyes on other projects for a bit. Please reach out to us individually, on the TinyMCE Github project itself or on #core-tinymce if you have any issues we need to look at!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maddisondesigns picture maddisondesigns  路  3Comments

mhenrylucero picture mhenrylucero  路  3Comments

BE-Webdesign picture BE-Webdesign  路  3Comments

moorscode picture moorscode  路  3Comments

pfefferle picture pfefferle  路  3Comments