Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for creating DomToModelContext, used by formatContentModel and createContentModel API

Hierarchy

Index

Properties

Optional additionalFormatParsers

additionalFormatParsers: Partial<FormatParsersPerCategory>

Provide additional format parsers for each format type

Optional formatParserOverride

formatParserOverride: Partial<FormatParsers>

Overrides default format handlers

Optional processNonVisibleElements

processNonVisibleElements: boolean

If true elements that has display:none style will be processed

Optional processorOverride

processorOverride: Partial<ElementProcessorMap>

Overrides default element processors

Optional recalculateTableSize

recalculateTableSize: boolean | "selected" | "all" | "none"

Whether recalculate table size when parse table 'all' or true means recalculate all tables in the model 'selected' means recalculate only selected tables in the model 'none' or false means do not recalculate any table in the model

When this option is passed, "tryGetFromCache" will be ignored.

Optional skipFormatContainerFallbackCheck

skipFormatContainerFallbackCheck: boolean

When set to true, if a container element could be represented by a FormatContainer, always keep the FormatContainer and never fall back to a paragraph, even when it only has a single child. Set this when the intermediate FormatContainer is persisted during DOM to Content Model conversion and is later used during formatting.

Optional tryGetFromCache

tryGetFromCache: boolean

When set to true, it will try to reuse cached content model if any

Generated using TypeDoc