jquery - Getting value from TinyMCE -
jquery - Getting value from TinyMCE -
im using tinymce editor in page need grab value using jquery.
i totally lost on how this, have tried using various id's , attempting fetch value wont work anything.
jsfiddle
$( document ).ready( function() { tinymce.init({ // general options mode : "exact", elements : "thisid", // skin options skin : "o2k7", skin_variant : "silver", }); derp(); }); function derp() { $('#go').click( function() { // alert('derp'); x = $('#thisid_ifr').val(); //this effort value of textarea not working?!? alert(x); }); // }
try value text area
tinymce.activeeditor.getcontent(); // raw contents editor tinymce.activeeditor.getcontent({format : 'raw'}); //get text content editor tinymce.activeeditor.getcontent({format : 'text'}); // content of specific editor: tinymce.get('thisid').getcontent(); here demo
jquery tinymce
Comments
Post a Comment