JSFiddle - React, Tailwind, and code Playground
by FAiz AHMed
HTML
<textarea>
<p>Hello World!</p>
</textarea>
JavaScript
$.fn.wysiwyg = function (options) {
var e = $(this).replaceWith("<iframe>");
console.log($(this)[0].contentDocument);
};
$("textarea").wysiwyg();