cosmocode / dokuwiki-plugin-prosemirror

A modern WYSIWYG editor for DokuWiki
https://wysiwyg.wiki.cosmocode.de/
54 stars 20 forks source link

initializeLinkForm called multiple times and makes opening the link wizard fail #173

Closed cmacmackin closed 2 years ago

cmacmackin commented 2 years ago

The initializeLinkForm function is being called many times within the edit page (seemingly every time the link dialogue is opened). This results in the click event for the link wizard being created multiple times. Whenever there are an even number of such bindings, it becomes impossible to open the link wizard as the call on the first binding toggles it open and the second toggles it shut (and so on). The overall result is that every other time you open the dialogue to create a link, it becomes impossible to open the link wizard.

This behaviour can be reproduced even on the website for the prosemirror plugin.

cmacmackin commented 2 years ago

Thank you so much, it works beautifully now!