Options
All
  • Public
  • Public/Protected
  • All
Menu

The format object state in Content Model

Hierarchy

  • ContentModelFormatState

Index

Properties

Optional backgroundColor

backgroundColor: string

Background color

Optional canAddImageAltText

canAddImageAltText: boolean

Whether add image alt text command can be called to the text

Optional canMergeTableCell

canMergeTableCell: boolean

Whether we can execute table cell merge operation

Optional canRedo

canRedo: boolean

Whether the content ca nbe redone

Optional canUndo

canUndo: boolean

Whether the content can be undone

Optional canUnlink

canUnlink: boolean

Whether unlink command can be called to the text

Optional direction

direction: string

Direction of the element ('ltr' or 'rtl')

Optional fontName

fontName: string

Font name

Optional fontSize

fontSize: string

Font size

Optional fontWeight

fontWeight: string

Font weight

Optional headingLevel

headingLevel: number

Heading level (0-6, 0 means no heading)

Optional imageFormat

imageFormat: ImageFormatState

Format of image, if there is table at cursor position

Optional isBlockQuote

isBlockQuote: boolean

Whether the text is in block quote

Optional isBold

isBold: boolean

Whether the text is bolded

Optional isBullet

isBullet: boolean

Whether the text is in bullet mode

Optional isCodeBlock

isCodeBlock: boolean

Whether the text is in Code block

Optional isCodeInline

isCodeInline: boolean

Whether the text is in Code element

Optional isDarkMode

isDarkMode: boolean

Whether editor is in dark mode

Optional isInTable

isInTable: boolean

Whether the cursor is in table

Optional isItalic

isItalic: boolean

Whether the text is italic

Optional isMultilineSelection

isMultilineSelection: boolean

Whether the selected text is multiline

Optional isNumbering

isNumbering: boolean

Whether the text is in numbering mode

Optional isStrikeThrough

isStrikeThrough: boolean

Whether the text has strike through line

Optional isSubscript

isSubscript: boolean

Whether the text is in subscript mode

Optional isSuperscript

isSuperscript: boolean

Whether the text is in superscript mode

Optional isUnderline

isUnderline: boolean

Whether the text has underline

Optional letterSpacing

letterSpacing: string

Letter spacing

Optional lineHeight

lineHeight: string

Line height

Optional marginBottom

marginBottom: string

Margin Bottom

Optional marginTop

marginTop: string

Margin Top

Optional tableFormat

tableFormat: TableMetadataFormat

Format of table, if there is table at cursor position

Optional tableHasHeader

tableHasHeader: boolean

If there is a table, whether the table has header row

Optional textAlign

textAlign: string

Text Align

Optional textColor

textColor: string

Text color

Generated using TypeDoc