In some cases, we may need to use the editor's read-only mode to restore the style or formatting of the HTML.
Solution 1: Set editable:false parameter during initialization.
new LinwitDocEditor({
element: "#aiEditor",
placeholder: "Click to Input Content...",
content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI. ',
editable:false,
})
Solution 2: Set using aiEditor.setEditable(false) method call.
const aiEditor = new LinwitDocEditor({
element: "#aiEditor",
placeholder: "Click to Input Content...",
content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI. ',
})
aiEditor.setEditable(false)