JSFiddle - React, Tailwind, and code Playground

by epinapala

HTML

<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<script src="https://code.jquery.com/jquery-git1.js"></script>
<div id="editable" class="myipwe1"> Click me! I am editable and WYSIWYG!!! </div>

JavaScript

//set all the tinyMCE configuration here and pass it to the editable
$().ready(function() {
var ed = new tinymce.Editor('myipwe1', {
some_setting : 1
});

$('.myipwe1').editable(
{
type: 'wysiwyg',
editor: ed,
onSubmit:function submitData(content){
alert(content.current)
},
submit:'save'
});
});