JSFiddle - React, Tailwind, and code Playground

by jamescooke

HTML

<script src="http://jqueryte.com/js/jquery-te-1.4.0.min.js"></script>
<link rel="stylesheet" href="http://jqueryte.com/css/jquery-te.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script>
<span name="span" class="jqte-test">change me</span>
<button id="button2" type="button">Click Me!</button> 
<h2 id="txt">output</h2>

CSS

#status{
	width:50px;
	height:50px;
	background-color:orange;
}

JavaScript

$(document).ready(function () {

  $('.jqte-test').jqte();
  $('.jqte-test').jqte({"status" : true});
  


});

$('#button2').click(function() {
		  var editor = $('.jqte-test');
      var newText=editor.text();
      $('#txt').text(newText);
      
});