modxcms / tinymce-rte

GNU General Public License v2.0
14 stars 23 forks source link

Adding data-options to image link #81

Open valokammi opened 5 years ago

valokammi commented 5 years ago

I`m using Lightbox2 in my site. I want inserted image to be able to open lightbox window when clikced image. What is need for that is to have data-lightbox="value" data option in to tinymce-rte template.

Is there a way to do this? System setting maybe?

matdave commented 5 years ago

This can be completed with a combination of adding an external config JSON file in tinymcerte.external_config and setting the valid_elements https://www.tiny.cloud/docs-4x/configure/content-filtering/#valid_elements