A wrapper around the Quill editor.
When set to
Truethe Editor will expand with the text. If
Falsethe height is the starting height.
This returns a list of dicts. The content of any Quill editor is represented as a Delta object. A Delta object is a wrapper around a JSON object that describes the state of the Quill editor. This property exposes the undelrying JSON which can then be stored in a data table simple object cell.
When you do
self.quill.content = some_object, this will call the underlying
You can also set the
contentproperty to a string. This will call the underlying
contentproperty will always return the underlying JSON object that represents the contents of the Quill editor. It is equivalent to
With auto_expand this becomes the starting height. Without auto_expand this becomes the fixed height.
Additional modules can be set at runtime. See Quill docs for examples. If a toolbar option is defined in modules this will override the toolbar property.
Placeholder when there is no text
Check the Quill docs.
Boolean or Object
Check the Quill docs. If you want to use an Object you can set this at runtime. See quill docs for examples.
Is the component visible
All the methods from the Quill docs should work. You can use camel case or snake case. For example
self.quill.getText(). These will not come up in the autocomplete.
There are two Anvil specific methods:
Returns a string representing the html of the contents of the Quill editor. Useful for presenting the text in a RichText component under the
Set the contents of the Quill editor to html. The html will be sanitized in the same way that a RichText component sanitizes the html. See Anvil’s documentation on the RichText component.
When the text changes
When the selection changes
When the component is shown
When the component is hidden