A Tiny 3kb wysiwyg editor plugin written in js (no dependencies)
- insert the wysiwyg.js and wysiwyg.css files in your code.
- insert in your html body
<div id="wysiwyg" data-height="100vh" data-width="100%"></div>
and that's it. You can customise height and width of the editor by passing a valid css value to data-height
and data-width
attribute.
use getHtml()
in your JS to get the HTML code of the written text in tiny-wysiwyg