RichText
Class to manipulate the rich texts content
:return: [description] :rtype: [type]
blocks: Listeditor_version: strversion: intInitialize self. See help(type(self)) for accurate signature.
OptionalintAdd a figure to the rich text content
RichTextBlockFigurestrRichTextBlockAdd a file to the rich text content
RichTextBlockFilestrRichTextBlockAdd a view to a rich text content. This view is not associated with a resource
RichTextBlockViewFilestrRichTextBlockAdd a math formula to the rich text content
strstrRichTextBlockAdd a header to the rich text content
strRichTextBlockHeaderLevelRichTextBlockAdd a list to the rich text content
RichTextBlockListRichTextBlockAdd a view to a rich text content used in note. This requires the note to call the view
RichTextBlockNoteResourceViewstrRichTextBlockAdd a paragraph to the rich text content
strRichTextBlockRichTextBlockResourceViewstrRichTextBlockAdd a timestamp to the rich text content
RichTextBlockTimestampstrRichTextBlockAppend a block to the rich text content
RichTextBlockintRichTextDelete the parameter in the rich text content text
strstrSetGet the block at the given index
intRichTextBlockGet the block by its id
strOptionalGet the block index by its id
strintListGet the blocks of the given type
RichTextBlockTypeListListListListListCheck if the rich text contains a resource view with the given view_config_id
strboolInsert an element in the rich text content at the given index
intRichTextBlockboolReplace a block at the given index
intRichTextBlockReplace a block by its id
strRichTextBlockMethod 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.
dictReplace the parameter in the rich text content text
strstrbool - FalseRichTextDTOdictstrConvert the rich text content to markdown
strCreate a block
strRichTextBlockTypeRichTextBlockDataBaseRichTextBlocksummary
strstrRichTextBlockCreate a paragraph block
strstrRichTextBlockHeaderLevelRichTextBlockCreate a list block
strRichTextBlockListRichTextBlockCreate a paragraph block
strstrRichTextBlockListRichTextDTOCreate a timestamp block
strRichTextBlockTimestampRichTextBlockDeserialize the object from a json object. For SerializableRField, this method is called when the RField is loaded.
dictRichTextdictRichTextstrRichTextCheck if the given data is a valid rich text json
dictbool