Use remirror editor as controlled component
See original GitHub issueThe document about this topic is empty.
I tried to read the source code, found value
and onStateChange
props of Remirror component, but it seems that the editor state is created inside the Remirror and no examples how to create it outside of it safely and manually.
Checklist
- I have read the contributing document.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Controlled Editor - Remirror
In order to make an editor controlled the <Remirror /> component exposes two required props. state and onChange . When these props are...
Read more >Advanced Guide - Remirror
Prosemirror controls the underlying text editor, and unlike React, it needs a DOM node which it can render within. To that end, the...
Read more >@remirror/react-components - npm
Start using @remirror/react-components in your project by running `npm i ... A selection of core react components for your remirror editor.
Read more >useRef undefined error using nextjs and remirror editor ...
I get an error that setContent is undefined on the index page where the editor is loaded. I want to add an "external"...
Read more >The toolkit for building cross-platform text editors with remirror
remirror was started as a personal challenge. Would it be possible to build an editor that combined great performance with ease of use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m in the process of reworking some of the API for remirror. Controlled components should be a lot easier to create once that happens.
This has largely been fixed in the
next
version. If there are bugs in the implementation please open another issue.https://remirror.io/docs/concepts/react-controlled-editor