You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are building an editor with elements such as 'text', 'image', 'list', iframe'. The text elements should be able to contain multiple text-based elements (paragraphs, headers, lists), however it won't contain images, or iframes. No other text elements are allowed at the top level.
This has led us to create a nested editor for the text block component, called 'multi-text', which has a different set of elements to the parent editor. Nesting editors is not very well documented (there's only the 'editable voids' example, which doesn't go into much detail) and we're facing some issues, such as finding the correct way to update the parent editor's value from a change in the child editor elements, and some bugs which are apparent in nested editors (e.g. #4293 ).
It also seems that nesting editors is "not really recommended" according to @cameracker in #3962.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We are building an editor with elements such as 'text', 'image', 'list', iframe'. The text elements should be able to contain multiple text-based elements (paragraphs, headers, lists), however it won't contain images, or iframes. No other text elements are allowed at the top level.
This has led us to create a nested editor for the text block component, called 'multi-text', which has a different set of elements to the parent editor. Nesting editors is not very well documented (there's only the 'editable voids' example, which doesn't go into much detail) and we're facing some issues, such as finding the correct way to update the parent editor's value from a change in the child editor elements, and some bugs which are apparent in nested editors (e.g. #4293 ).
It also seems that nesting editors is "not really recommended" according to @cameracker in #3962.
How should we be going about this?
Beta Was this translation helpful? Give feedback.
All reactions