dmatthew / magento2-widget-parameters

Useful widget types for Magento 2 like image selector and wysiwyg text editor.
MIT License
56 stars 24 forks source link

cant add a Tag #8

Open borderland-it opened 5 years ago

borderland-it commented 5 years ago

If you add a link (a tag) on save there will come some Error.

Failed to execute 'setStartBefore' on 'Range': parameter 1 is not of type 'Node'

simonrl commented 5 years ago

Did you find a solution? enrico69 mentions a workaround here: https://magento.stackexchange.com/questions/135609/magento-2-1-create-a-wysiwyg-field-in-a-custom-widget but that's not ideal for me because I would like to insert the widget into a static block.

dmatthew commented 5 years ago

I confirmed this is a bug. Not sure when I will get around to fixing it though. Let me know if anyone finds a solution in the meantime.

simonrl commented 5 years ago

The workaround actually worked for me, but I have no idea why.

After saving one general widget, I could also add a new widget into a CMS block (on my loalhost, Mac OS).

I tested on some webservers (Apache, different Linux distros), and there it worked right from the start, regardless of the used Magento mode (development / production). Maybe it was just an issue with setup:upgrade on my Mac, although I did that several times.