Options
All
  • Public
  • Public/Protected
  • All
Menu

The format state

Hierarchy

Index

Properties

Optional backgroundColor

backgroundColor: string

Background color

Optional backgroundColors

backgroundColors: ModeIndependentColor

Mode independent background color for dark mode

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 headerLevel

headerLevel: number
deprecated

Use headingLevel instead Heading level (0-6, 0 means no heading)

Optional headingLevel

headingLevel: number

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

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 lineHeight

lineHeight: string

Line height

Optional marginBottom

marginBottom: string

Margin Bottom

Optional marginTop

marginTop: string

Margin Top

Optional tableFormat

tableFormat: TableFormat

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

Optional textColors

Mode independent background color for dark mode

Optional zoomScale

zoomScale: number

Current zoom scale of editor

Generated using TypeDoc