I want to use Medium Editor for inline editing. On one page it's working. However on another page I want the editor to be disabled at the beginning, as the text is normally only for reading. It's disabled with disableEditing: true when initializing the editor.
However I can't enable it again. I found nothing about changing the settings afterwards and whatever I tried, nothing worked.
var helpeditor = new MediumEditor("#htext", {
extensions: {
"autolist": autolist
},
toolbar: {
buttons: ["bold", "italic", "underline", "unorderedlist", "orderedlist", "justifyLeft", "justifyCenter"]
},
disableEditing: true
});
From the documentation it doesn't look like that library supports changing properties after initialisation. You'd need to
destroy()the existing instance and create a new one which does allow editing.Alternatively, use a better library which meets all your needs.