HTMLREditor is a modern rich text editor built for compatibility and extensibility.
$ git clone https://github.com/TheWitcher1991/HTMLREditor
$ cd HTMLREditor
$ npm install
$ npm run build
<!-- Create the toolbar and editor container -->
<div id="#editor"></div>
<!-- Include the HTMLREditor library -->
<script src="${DIRNAME}/build/editor.min.js"></script>
<!-- Initialize HTMLREditor editor -->
<script>
HTMLREditor
.register('#editor')
.catch(err => console.error(err));
</script>
Or can using ES6 import.
<!-- Create the toolbar and editor container -->
<div id="#editor"></div>
<!-- Initialize HTMLREditor editor -->
<script type="module">
import HTMLREditor from '${DIRNAME}/src/core/HTMLREditor.js';
HTMLREditor
.register('#editor')
.catch(err => console.error(err));
</script>