The example explains how to write a custom widget for the form editor.
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.