Skip to content

The editor's read-only mode

In some cases, we may need to use the editor's read-only mode to restore the style or formatting of the HTML.

Samples

Solution 1: Set editable:false parameter during initialization.

typescript
new AiEditor({
    element: "#aiEditor",
    placeholder: "Click to Input Content...",
    content: 'AiEditor is an Open Source Rich Text Editor Designed for AI. ',
    editable:false,
})

Solution 2: Set using aiEditor.setEditable(false) method call.

typescript
const aiEditor = new AiEditor({
    element: "#aiEditor",
    placeholder: "Click to Input Content...",
    content: 'AiEditor is an Open Source Rich Text Editor Designed for AI. ',
})


aiEditor.setEditable(false)

产品价格

购买商业许可证的好处?

用在商业环境,必须要购买商业许可证吗?

什么是“永久授权”?