staempfli / magento2-module-widget-extra-fields

Magento 2 Module that adds extra field types for Widgets. For example Image and WYSIWYG fields
20 stars 17 forks source link

How to add WYSIWYG field #4

Closed rossmc closed 6 years ago

rossmc commented 6 years ago

Have you added functionality to add WYSIWYG fields? I can't see from code or readme how to add a WYSIWYG filed.

Image uploader works very nicely, thanks 👍

jalogut commented 6 years ago

Hi @rossmc That was also our idea at first. We also wanted to add WYSIWYG fields. We tried but we faced several issues that made it not possible. We also realised that having WYSIWYG fileds inside a WYSIWYG field is not the right approach. If you need to add formatted content inside the original WYSIWYG, you should create custom TinyMCE plugins. You can see how we did it here:

rossmc commented 6 years ago

Thanks, that makes sense. I was thinking myself that it's better in a way for users to just add text and not have to be concerned about the html WYSIWYG adds.

By the way, I created a small ui-card widget which uses this extension. Thanks 👍 https://github.com/rossmc/CardWidget