taoguan / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

Can I populate the textarea using javascript dynamically? #79

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a msg form for a message board using jwysiwyg.
2. try to populate its jwysiwyg-text area using javascript (ajax call)
3. cannot find any "public-level" function that can populate the textarea.

What is the expected output? What do you see instead?
- this board will be nicer if we can directly access to textarea object

What version of the product are you using? On what operating system?
- Windows XP

Please provide any additional information below.
- I tried various methods to populate the textarea using javascript. none 
of them worked.
EX) 
$('#bbscontent').wysiwyg('prototype.setContent', 'hahaha');
$('.wyswygTxt').val("hahaha");
......

Original issue reported on code.google.com by badug...@gmail.com on 31 Jan 2009 at 10:27

GoogleCodeExporter commented 8 years ago
BTW, i use jQuery 1.2.6

Original comment by badug...@gmail.com on 31 Jan 2009 at 10:30

GoogleCodeExporter commented 8 years ago
Any answers to this?

Original comment by joshuaja...@gmail.com on 29 Apr 2009 at 2:07

GoogleCodeExporter commented 8 years ago
I resolved it by replacing it with FCKEditor. Probably it is the best text 
editor in
the world.

Original comment by badug...@gmail.com on 30 Apr 2009 at 2:31

GoogleCodeExporter commented 8 years ago

Original comment by akzhan.a...@gmail.com on 8 Dec 2009 at 11:13