Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.98k stars 609 forks source link

Issue with a modal opening #1342

Closed NeXiiiuS closed 1 year ago

NeXiiiuS commented 1 year ago

I'm in front of an issue with the modal opening using Trumbowyg. I'm just implementing it basically and when I try to add a link for example, the buttons Confirm and Reset are just displaying in every forms on the page :

image

So I tried to identify the issue by searching by myself (I'm using CDNJS version 2.25.2) and I found this (but I don't know why this seems to be an issue only for me) :

image

The "box" var on the line 1594 (when the modal is created and displayed) seems to be undefined.

This is how I'm using Trumbowyg :

<textarea id="my-editor" name="texte"></textarea>

<script>
    $('#my-editor').trumbowyg();
</script>
NeXiiiuS commented 1 year ago

I'm sorry for posting hastily. An external plug-in used in my app was in conflict with Trumbowyg... I solved this by updating the version with the latest. Thanks a lot for your awesome work 👍