wysiwyg.js is a tiny 3kb wysiwyg editor plugin written in js (no dependencies).
How to create a web editor using wysiwyg.js?
1.Import wysiwyg.js and wysiwyg.css in your html page
<link rel="stylesheet" href="wysiwyg.css"> <script src="wysiwyg.js"></script>
2.Create a div container with id= wysiwyg
<div id="wysiwyg" data-height="100vh" data-width="100%"></div>
Then a web editor will be displayed.