Kyle

FYI - I was able to get this to work eventually  ('theText' is the just the
string I want to insert).

$("#tinymce").html(theText); 

This works fine for standard textarea, but not TinyMce. I think this is
because TinyMce seems to disable the textarea completely (it no longer
existing to target) and inserts an iframe in its place. I started looking
through the TinyMce documentation more closely (a RTFM moment!) and came up
with this...

tinyMCE.execCommand('mceSetContent',false,theText);

Not a Jquery solution, granted, but can be run along side and it does allow
me insert formatted HTML text in to the TinyMCE textarea dynamically.

HTH

N


Kyle Buttress wrote:
> 
> Still trying to get there, I'm slowly trying to experiment with this.
> 
> if / when I get it I'll post information here.
> 
> thanks
> 
> Kyle
> 
> 
> nsj wrote:
>> 
>> Kyle,
>> 
>> Did you get anywhere with this? I'm having exactly the same problem and
>> want to try to dynamically populate a TinyMce textarea. 
>> 
>> N
>> 
>> 
>> 
>> Kyle Buttress wrote:
>>> 
>>> I'm using tinymce with my textarea. 
>>> 
>>> Without tinymce I can dynamically load text into the textarea, however
>>> with tinymce active the text area will not be populated.
>>> Is there a way around this?
>>> 
>>> thanks
>>> 
>>> kyle
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Jquery-tinymce-and-dynamic-loading-to-textarea-tf3153110.html#a8963616
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to