Open kkaliannan opened 10 years ago
I want to insert some HTML (html_string) into the textarea using:
var wysihtml5Editor = editorElement.data("wysihtml5").editor; wysihtml5Editor.composer.commands.exec("insertHTML", html_string);
However, this only seems to work if I have first clicked on the textarea at least once. Has anyone else seen this? (the JS debugger yields no errors).
Yes I am seeing the exact same problem. Did you ever find a solution?
I have the same problem with CKEDITOR. Does anyboby found a solution ?
I want to insert some HTML (html_string) into the textarea using:
var wysihtml5Editor = editorElement.data("wysihtml5").editor; wysihtml5Editor.composer.commands.exec("insertHTML", html_string);
However, this only seems to work if I have first clicked on the textarea at least once. Has anyone else seen this? (the JS debugger yields no errors).