aluura

MediumEditor - pasteHTML() is not a function.

aluura PURCHASED
2 years ago
Dorin,

I have the following code but i'm getting an error message that pasteHTML is not a function. Do you know what's wrong?

var editor = $.SOW.vendor.mediumeditor.init(".medium-editor");
editor.pasteHTML("<b>Hello</b>");

I expected the editor to add the string "hello" at the end of input but it is unable to complete the step due to the error.

Last edited 2 years ago