tinymce / tinymce-webcomponent

MIT License
15 stars 7 forks source link

INT-2955: Support finding a surrounding form when in nested shadow dom #31

Closed tiny-james closed 1 year ago

tiny-james commented 1 year ago

Currently it stops at the first shadow-dom due to using element.closest('form').

This fix searches the nested shadow dom outwards until it finds a form element or it gets to to the document.