Custom plugin with React components #2561
Replies: 2 comments 1 reply
-
A simple way to achieve placing the React root in a wrapper provided by a plugin and call any React component.
|
Beta Was this translation helpful? Give feedback.
-
I tried this example: It works, but the focus ends up at the start of the next block. It seems maybe focus is set synchronously before the React render loop can insert the contenteditable node? editor.js/src/components/selection.ts Line 340 in 3aa164d I guess I'm looking for suggestions on how to asynchronously set focus to the start of the newly inserted React Tool? My code is proprietary, but if needed, I can try and setup a reproducible sandbox example. Is there a default Sandbox example using TypeScript where I can add this React based tool? Thank you! |
Beta Was this translation helpful? Give feedback.
-
is there any way to create custom plugin which uses react component instead of vanilla js?
Beta Was this translation helpful? Give feedback.
All reactions