Adding custom functionality to editor via jquery - possible?
Submitted by dale42 on Thu, 10/13/2016 - 23:48
Forums:
I would like to hide/show configuration information in the editor based on settings. For example, if the Feature X checkbox is clicked, the options for Feature X are displayed.
The widgets defined in semantics.json are great, I don't need to change them. I think I can achieve what I need by adding some basic jquery code to the editor.
Is there a simple of way of including additional js/css files with the editor? Is there a better way of doing this? Are there library examples you could point me too?
Thanks.
thomasmars
Fri, 10/14/2016 - 09:24
Permalink
Hi,
Normally the editor is generated from semantics.json. If you want to customize the whole editor or only parts of the editor for a content type you would have to create a widget.
I think an example that illustrates the use of widgets in a simple manner is the Radio Group editor widget, which is used in the True/False content type coming up on the next release.
Let me know if you have any problems or the way of creating widgets feels unintuitive.
- Thomas