Closed lqminh2207 closed 2 weeks ago
@hunghg255 I found that on original lib has read-only instance. I can't find it in your lib. Do you have it?
@hunghg255 I found that on original lib has read-only instance. I can't find it in your lib. Do you have it?
https://reactjs-tiptap-editor.vercel.app/guide/customize.html#_3-accessing-the-editor-instance you can refer this
I tried to set editable to false. But It seem only content is disabled and toolbar and border doesn't disappear
im not sure, can you create a repo, I will check help you
@hunghg255 What do you think about create new feature for read-only mode? Currently after save data then display that data it doesn't same as when we comment, I think because of CSS.
@hunghg255 Like on your playground. If using these HTML to display then content will not be the same on the editor
@hunghg255 What do you think about create new feature for read-only mode?
Currently after save data then display that data it doesn't same as when we comment, I think because of CSS.
yea. pull request welcome
you can check this https://www.w3schools.com/jsref/met_node_insertadjacenthtml.asp