You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
Can I keep the display and edit modes of Editor in a single react component? The display mode would load the initial editor state from the database (convertFromRaw) and clicking on an edit button (for the writer only) would make the content Editable and display a submit button to update/create the content.
Not sure if I am making sense but I want to use the same React component to
display the editor content to readers, and
load editor mode for the writer (with Edit/Submit buttons)
Any example implementing this would be great (with standard practices of switching between display/Edit mode)
The text was updated successfully, but these errors were encountered:
Draft doesn't do anything called editorEnabled so I'm not sure where you got that. You can set readOnly={true} on the root DraftEditor component though.
Can I keep the display and edit modes of Editor in a single react component? The display mode would load the initial editor state from the database (convertFromRaw) and clicking on an edit button (for the writer only) would make the content Editable and display a submit button to update/create the content.
Not sure if I am making sense but I want to use the same React component to
Any example implementing this would be great (with standard practices of switching between display/Edit mode)
The text was updated successfully, but these errors were encountered: