Replies: 1 comment
-
We should probably add a ResizeObserver to ensure it gets positioned when the window changes. We don't recommend using decorator nodes for popovers, but instead position them using a portal over the top like the CharacterStylesPopup does. This offers the best user experience without affecting the content of state of the editor (a decorator node would be in the state of the editor, and it doesn't make sense for a decorator's concern to be about popups). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want create a inline toolbar, in playground-demo it called
CharacterStylesPopupPlugin
, it set position by native dom operation, but not update when dragging browser window.How can I use my custom popover component? Like antd popover or mui popover, shoud I custom decorator nodes ?
I would appreciate any demo or ideas provided.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions