Adding custom functionality to editor via jquery - possible?

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?


thomasmars's picture

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