panel.widgets.texteditor module#
Defines a WYSIWYG TextEditor widget based on quill.js.
- class panel.widgets.texteditor.TextEditor(**params: Any)[source]#
Bases:
Widget
The TextEditor widget provides a WYSIWYG (what-you-see-is-what-you-get) rich text editor which outputs HTML.
The editor is built on top of the [Quill.js](https://quilljs.com/) library.
Reference: https://panel.holoviz.org/reference/widgets/TextEditor.html
- Example:
>>> TextEditor(placeholder='Enter some text')
Parameter Definitions
Parameters inherited from:
panel.viewable.Layoutable
: align, aspect_ratio, css_classes, design, min_width, min_height, max_width, max_height, styles, stylesheets, tags, width_policy, height_policy, sizing_mode, visiblepanel.viewable.Viewable
: loadingpanel.widgets.base.Widget
: height, margin, widthvalue = String(default='', label='Value')
State of the current text in the editor
disabled = Boolean(default=False, label='Disabled')
Whether the editor is disabled.
mode = Selector(default='toolbar', label='Mode', names={}, objects=['bubble', 'toolbar'])
Whether to display a toolbar or a bubble menu on highlight.
toolbar = ClassSelector(class_=(<class 'list'>, <class 'bool'>), default=True, label='Toolbar')
Toolbar configuration either as a boolean toggle or a configuration specified as a list.
placeholder = String(default='', label='Placeholder')
Placeholder output when the editor is empty.