Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents settings to customize DOM to Content Model conversion

Hierarchy

Index

Properties

defaultContentModelFormatMap

defaultContentModelFormatMap: {}

Default format for each tag name used for generating DOM tree from content model.

This map defines the default implicit formats for specific HTML tag names. It is used during the conversion of a content model to a DOM tree to ensure that elements are styled correctly based on their tag name. Each entry in the map associates a tag name (in lowercase) with a combination of segment and block formats.

Example: { "p": { fontSize: "12px", lineHeight: "1.5", marginTop: "10px", marginBottom: "10px" }, "h1": { fontSize: "24px", fontWeight: "bold", marginTop: "20px", marginBottom: "20px" } }

Type declaration

defaultFormatAppliers

defaultFormatAppliers: Readonly<FormatAppliers>

Default format parsers before overriding. This provides a way to call original format applier from an overridden applier function

defaultModelHandlers

defaultModelHandlers: Readonly<ContentModelHandlerMap>

Default Content Model to DOM handlers before overriding. This provides a way to call original handler from an overridden handler function

formatAppliers

Map of format appliers

metadataAppliers

metadataAppliers: MetadataAppliers

Map of metadata appliers

modelHandlers

modelHandlers: ContentModelHandlerMap

Map of Content Model handlers

Optional onNodeCreated

onNodeCreated: OnNodeCreated

An optional callback that will be called when a DOM node is created

param

The related Content Model element

param

The node created for this model element

Generated using TypeDoc