joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.77k stars 3.65k forks source link

Extend Custom Field - Editor #40619

Closed macstalker closed 6 months ago

macstalker commented 1 year ago

For some custom fields I would like to have an option to choose code editor explicitly no matter what editor selected in user preferences, as well as type of content to wrap a code in appropriate tags.

I propose to add following options:

Editor type:

Default (accordingly to user preferences, current behavior)
WYSIWYG (loads WYSIWYG edior)
Code (loads CodeMirror or None, depending on user preferences)

If Code is chosen then activate another dropdown with syntax options: None, Style, Javascript, PHP, etc - these should wrap field output in appropriate tag: