<script>
tinymce.init({
selector: “textarea”,
setup : function(ed) {
ed.on(“keyup”, function(){
$(‘#preview’).html(tinymce.activeEditor.getContent());
});
}
});
</script>

<div id=”live-preview-form”>
<textarea id=”message”> paste your html content here <textarea></div>
<div id=” preview”> on keypress you will get html preview here </div>

Your Answer
Sign In
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.