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:
Here we show an example for a native widget.
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.