Editor
An HTML editor component based on Suneditor.
Editor content
EditorOptions
The extended options and toolbar buttons can be customized by passing an instance
of rx.EditorOptions
for the set_options
prop.
Fields
The button_list
prop expects a list of lists, where each sublist contains the
names of buttons forming a group on the toolbar. The character "/" can be used
in place of a sublist to denote a line break in the toolbar.
Some valid button_list
options are enumerated in rx.EditorButtonList
, seen below.
A custom list of toolbar buttons may also be specified using these names as seen in the following example.
Since this example uses the same state as above, the two editors contents are shared and can be modified by either one.
See the Suneditor README.md for more details on buttons and options.
API Reference
rx.editor
A Rich Text Editor component based on SunEditor. Not every JS prop is listed here (some are not easily usable from python), refer to the library docs for a complete list.