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
RichTextFigureData
str
RichTextBlock
Add a file to the rich text content
RichTextFileData
str
RichTextBlock
Add a view to a rich text content. This view is not associated with a resource
RichTextViewFileData
str
RichTextBlock
Add a math formula to the rich text content
str
str
RichTextBlock
Add a header to the rich text content
str
RichTextParagraphHeaderLevel
RichTextBlock
Add a list to the rich text content
RichTextParagraphListData
RichTextBlock
Add a view to a rich text content used in note. This requires the note to call the view
RichTextNoteResourceViewData
str
RichTextBlock
Add a paragraph to the rich text content
str
RichTextBlock
RichTextResourceViewData
str
RichTextBlock
Add a timestamp to the rich text content
RichTextTimestampData
str
RichTextBlock
Append a block to the rich text content
RichTextBlock
int
RichText
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
Replace the data of a block by its id
str
Any
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
Create a block
str
RichTextBlockType
Any
RichTextBlock
summary
str
str
RichTextBlock
Create a paragraph block
str
str
RichTextParagraphHeaderLevel
RichTextBlock
Create a list block
str
RichTextParagraphListData
RichTextBlock
Create a paragraph block
str
str
RichTextBlock
List
RichTextDTO
Create a timestamp block
str
RichTextTimestampData
RichTextBlock
Deserialize the object from a json object. For SerializableRField, this method is called when the RField is loaded.
dict
RichText
dict
RichText