Summernote click event (is not a function)

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.

Can you show some code?

<button id="btn_add_content" class="btn btn-sm btn-success text-light" dmx-on:click="blog_edit_form.inp_content_editor.pasteHTML('&lt;img src=&quot;/assets/blog/\'+imgLink+\'&quot; /&gt;')"></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

Yes, it's a similar problem. Since I couldn't solve it with pasteHTML, I solved it with js.

Regards