taoguan / jwysiwyg

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

Can't update the textarea content #163

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Trying to update the content
2.
3.

What is the expected output? What do you see instead?
It's supposed to update the textarea, instead it does nothing

What version of the product are you using? On what operating system?
Last version, same issue under mac windows firefox and safari

Please provide any additional information below.

Same issue wether I use documen...innerHTML = '' or $('#wysiwyg').val('my val');

Despite if I do a alert($('#wysiwyg').val()) right after a 
$('...').val('hello'), it alert me hello and not 
the content that I still see...

Original issue reported on code.google.com by euro2c...@gmail.com on 24 Feb 2010 at 3:46

GoogleCodeExporter commented 8 years ago
Maybe you need to use the setContent method,

take a look at http://wiki.github.com/akzhan/jwysiwyg/

Replacing all content

$('#wysiwyg').wysiwyg('setContent', '<p>Replacing text</p>');

Original comment by serg...@gmail.com on 31 Mar 2010 at 4:01