Minimal WYSIWYG Editor In Vanilla JavaScript – tiny-wysiwyg

Category: Javascript , Text | April 5, 2018
Author: amitasaurus
Views Total: 1,985
Official Page: Go to website
Last Update: April 5, 2018
License: MIT

Preview:

Minimal WYSIWYG Editor In Vanilla JavaScript – tiny-wysiwyg

Description:

A dead simple WYSIWYG text editor written in vanilla JavaScript and plain HTML/CSS.

How to use it:

Insert the JavaScript wysiwyg.js and stylesheet wysiwyg.css into the html document.

<link rel="stylesheet" href="wysiwyg.css">
<script src="wysiwyg.js"></script>

Create an empty DIV element that will be converted into a contentEditable element with a WYSIWYG Editor.

<div id="wysiwyg" data-height="100vh" data-width="100%"></div>

You Might Be Interested In:


Leave a Reply