JSFiddle - React, Tailwind, and code Playground

HTML

<textarea>
    <p>Hello World!</p>
</textarea>

JavaScript

$.fn.wysiwyg = function (options) {

    var $e = $("<iframe>");
    this.replaceWith($e);
    console.log($e);

};


$("textarea").wysiwyg();