gantry / gantry5

:rocket: Next Generation Template / Theme Framework
http://gantry.org
1.04k stars 204 forks source link

wysiwyg editor in gantry layout designer #2562

Open flosie25 opened 5 years ago

flosie25 commented 5 years ago

Is there any possiblity to integrate an html editor in the "Custom HTML" Particle? I use Joomla with TinyMCE-Editor. That would be very useful, because it is really user-unfriendly to type plain html.

mahagr commented 4 years ago

There is support for this in Joomla, but it's not used as other systems do not have support for it.

You can edit the particle YAML file and change the field type to editor instead of using textarea. I've not tested it for a bit, but it should still work.

flosie25 commented 4 years ago

I changed the type field in the yaml file from textarea.textarea to textarea.editor. After that there are some indications for a editor, but the editor loads not correctly. I also have a error in the debugger console 'Uncaught ReferenceError: tinyMCE is not defined'. Do i need to manually load the editor files and how can i do this?

I use the latest version of Gantry 5.4.31.

image

mahagr commented 4 years ago

Umm, looks like it's not being used because of the field does not work with AJAX.