How to load html using jquery into a TinyMCE textarea -
I have a texture that uses TinyMCE as a WYSIWYG. Once this texture loads, So I want to, click on some HTML code button that I load with AJAX jquery, that is loaded in that textaria.
I use this HTML code as Hello & lt; / P & gt; Original text source The JQUERY script that HTML brings in this way only updates the reader (which is hidden, while TinyMCE is in action) It works like this below: I TinyMeE IEEE IEEE IEEE IEEE IEEE IEEE IEEE IEEEEETEEREEEEETEEREXIPEREMMEEETTEMEEXE;;); return false;}); and
& lt; Textarea name = "corpo" id = "input_corpo" & gt; Text here & lt; / Text field & gt;
$ . Get ("hello.html", function (content) {$ ("# input_corpo") .text (content);}); return false;});
How can I do this?
You function:
$ Get ("hello.html", function (content) {// if you have a tiny MEE box on the page: tinyMCE.activeEditor.setContent (content);});
or too small:
$ Get ("hello.html", tinyMCE.activeEditor.setContent);
Comments
Post a Comment