editeurjs
v0.2.3
Published
a rich text component
Downloads
3
Readme
Editeur is a rich text editor. It was designed as a component in vue.js and must be work on it. But during development, some solution in it was fialed, so it was no need to be design like that, and I changed it into js module, and the package type is umd.there is no different in document operation from WYSIWYG Editor such as Quill or TinyMCE. But Some methods has may problems and not efficient, it may be changed later maybe. For now, I think as a tool it is far from being available for production. it just for reference only.
CDN
import in html
<script src="https://unpkg.com/[email protected]/dist/editeur.js"></script>
<!--in body-->
<div id="content"></div>
<!--improt in javascript-->
<script type="text/javascript">
const ele = document.getElementById('content')
const editor = new editeur.Editor(ele)
</script>
Module
install in npm
npm install editeurjs
use as a Module
import { Editor } from 'editeurjs;
const ele = document.getElementById('content');
const editor = new Editor(ele);
it also support es5 commonjs module import
Usage
I have write a example of the usage. most function can be found. If you want to import it into a mvvm framework such as vue, you can see this