Controlling the editor from outside the React component #4945
-
Hi! I have the following problem: I have multiple instances of TipTap running in some kind of "art board" or "website editor" that has a sidebar which contains controls for the text, e.g. text align (left, center, right) and text styles (bold, italic, etc.). Right now the sidebar is completely decoupled from the TipTap editors/components. How can I access the respective How would I get access to the respective editors from outside their react components? Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I have this question as well. I have resorted to using novel.sh for now and the onCreate prop. Not sure what the equivalent in Tiptap is. |
Beta Was this translation helpful? Give feedback.
-
Solved my cases with the use of createPortal, "portaling" the controls from components that have access to the |
Beta Was this translation helpful? Give feedback.
Solved my cases with the use of createPortal, "portaling" the controls from components that have access to the
editor
class to wherever I need them.