Rich Text Editor

This is just a simple editor with filters. The HTML tags is filtered in the paste action.


Mini text editor with filters

Data to be uploaded:

<script src=""></script>
<link rel="stylesheet" href="" type="text/css" />

<div id="editor1"></div>

<p><input type='button' value='Get data' id='btn1'></p>

let editor = jSuites.editor(document.getElementById('editor1'), {
    value:'<b>This is a basic example...</b>'

btn1.onclick = () => alert(editor.getData())


Method Description
getData(); Get editor HTML content
setData(); Set editor HTML content