Search code examples
jqueryjquery-pluginsjwysiwyg

jwysiwyg Jquery


im using jwysiwyg and i dont know how to clear the value of the frame to where the user will input the text..

im doing it like this..

$('#wysiwyg').val("");

but it is not working..


Solution

  • You can use the setContent method like this:

    $('#wysiwyg').wysiwyg('setContent','');
    

    This has the effect of emptying the <body> element, so it should do what you're after.