question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use remirror editor as controlled component

See original GitHub issue

The 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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ifiokjrcommented, Feb 25, 2020

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.

1reaction
ifiokjrcommented, Jul 22, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found