WYSIWYG editor for responsive content
To create an editor instance on your page
<!-- include script on your page -->
<script src="editor.js"></script>
<script>
// create new instance of editor
var parentElement = document.getElementById('editorHolder');
var content = null;
var options = {
cssPath: './editor.css',
useIframe: false
};
var editor = new ResponsiveEditor(parentElement, content, options);
</script>
There are several methods to work with content
Serialize editor state to JSON object or string
Use serialzed data to build editor content
Render editor's state to html, return html string
Render editor's state to html, and place it inside target element
MIT © Roman Taraban