Class to manipulate the rich texts content
:return: [description] :rtype: [type]
blocks: List
editor_version: str
version: int
Initialize self. See help(type(self)) for accurate signature.
Optional
int
Add a figure to the rich text content
RichTextBlockFigure
str
RichTextBlock
Add a file to the rich text content
RichTextBlockFile
str
RichTextBlock
Add a view to a rich text content. This view is not associated with a resource
RichTextBlockViewFile
str
RichTextBlock
Add a math formula to the rich text content
str
str
RichTextBlock
Add a header to the rich text content
str
RichTextBlockHeaderLevel
RichTextBlock
Add a list to the rich text content
RichTextBlockList
RichTextBlock
Add a view to a rich text content used in note. This requires the note to call the view
RichTextBlockNoteResourceView
str
RichTextBlock
Add a paragraph to the rich text content
str
RichTextBlock
RichTextBlockResourceView
str
RichTextBlock
Add a timestamp to the rich text content
RichTextBlockTimestamp
str
RichTextBlock
Append a block to the rich text content
RichTextBlock
int
RichText
Delete the parameter in the rich text content text
str
str
Set
Get the block at the given index
int
RichTextBlock
Get the block by its id
str
Optional
Get the block index by its id
str
int
List
Get the blocks of the given type
RichTextBlockType
List
List
List
List
List
Check if the rich text contains a resource view with the given view_config_id
str
bool
Insert an element in the rich text content at the given index
int
RichTextBlock
bool
Replace a block at the given index
int
RichTextBlock
Replace a block by its id
str
RichTextBlock
Method to remove the resource view from the rich text content and replace it when parameters. Useful when creating a template (because templates can't have resource views)
Serialize the object into a json object. For SerializableRField, this method is called when the resource is saved.
dict
Replace the parameter in the rich text content text
str
str
bool
- False
RichTextDTO
dict
str
Convert the rich text content to markdown
str
Create a block
str
RichTextBlockType
RichTextBlockDataBase
RichTextBlock
summary
str
str
RichTextBlock
Create a paragraph block
str
str
RichTextBlockHeaderLevel
RichTextBlock
Create a list block
str
RichTextBlockList
RichTextBlock
Create a paragraph block
str
str
RichTextBlock
List
RichTextDTO
Create a timestamp block
str
RichTextBlockTimestamp
RichTextBlock
Deserialize the object from a json object. For SerializableRField, this method is called when the RField is loaded.
dict
RichText
dict
RichText
str
RichText
Check if the given data is a valid rich text json
dict
bool