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
When calling importDOM, both outer and inner composers fights for the same node. It is very tedious to brand all the markup generated by each level with a unique id so that they can stay within their contexts. Is there an easy way to keep contexts separate when nesting Composers?
Example:-
MentionNode Inside the caption of an ImageNode
Here the caption is a nested editor
In the exportDOM function of the ImageNode I'm structuring it like so (crude example)
The mention node gets pulled out of the 'image-caption-container' (which is supposed to be for the inner composer state) and then gets inserted into the root level editor DOM. Not the expected behavior, this causes confusion since the DOM elements jumps around when re initializing.
Can we solve this issue in an easy way? Am I missing something obvious? Is this supposed to work out of the box but did I mess something up in my custom configuration?
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When calling importDOM, both outer and inner composers fights for the same node. It is very tedious to brand all the markup generated by each level with a unique id so that they can stay within their contexts. Is there an easy way to keep contexts separate when nesting Composers?
Example:-
MentionNode Inside the caption of an ImageNode
Here the caption is a nested editor
In the exportDOM function of the ImageNode I'm structuring it like so (crude example)
The mention node gets pulled out of the 'image-caption-container' (which is supposed to be for the inner composer state) and then gets inserted into the root level editor DOM. Not the expected behavior, this causes confusion since the DOM elements jumps around when re initializing.
Can we solve this issue in an easy way? Am I missing something obvious? Is this supposed to work out of the box but did I mess something up in my custom configuration?
Beta Was this translation helpful? Give feedback.
All reactions