Writing native editor widgets
Adding your own widget for the content editor is fairly easy. Each widget has server-side and client-side code. There are two ways to implement your own widget:
- Implementing native widgets: This means that you write the widget in Java for the server-side part and in plain Java Script for the client-side part.
- Implementing GWT widgets: This means that you write the widget using GWT and that way you implement all the code in Java.
Here we show an example for a native widget.
The example widget in action
The figure shows the demo content using the widget. It's used in the upper two editor field sequences. The last sequence shows the default string widget shipped with the core.