mnt93
1
Hello,
I have a click event on a button.
There is an img element that needs to be pasted into the Summernote editor, but when I click it, it gives the error _pasteHTML is not a function.
This error started happening after updating summernote locally.
Thanks in advance for your help.
mnt93
3
<button id="btn_add_content" class="btn btn-sm btn-success text-light" dmx-on:click="blog_edit_form.inp_content_editor.pasteHTML('<img src="/assets/blog/\'+imgLink+\'" />')"></button>
Hi Yes I~ have the same problem it did work in the previous Summernote version. I reported it as a bug in April https://community.wappler.io/t/bug-report-1712130833333/55620 but it doesn't appear to have been fixed yet.
Regards
1 Like
mnt93
6
Yes, it's a similar problem. Since I couldn't solve it with pasteHTML, I solved it with js.
Regards