bootstrap-wysihtml5
bootstrap-wysihtml5 copied to clipboard
Change editor value
Hi,
Can you please help in showing me how to change editor value after initialization, i tried :
$('#some-textarea').val('Some HTML code');
But this didn't work, editor kept the old value, also re-initializing it again will duplicate the toolbar and will not change the value
Thanks
Would also like to know how ist it done.
Hi jalalomary ,
try this var $editor = $('#some-textarea').wysihtml5() $editor.data("wysihtml5").composer.setValue('Some HTML code);
@sundna this code still duplicates the toolbar.