Properties
markup Cache
markup
Cache
: Dict < Markup > = {}
Methods
create Atom
create Atom( name: string , value?: string , payload?: AtomPayload , markups?: Markup [] ) : default
Parameters
name: string
value: string = ''
payload: AtomPayload = {}
markups: Markup [] = []
Returns default
create Card Section
create Card Section( name: string , payload?: CardPayload ) : default < CardPayload >
Parameters
name: string
payload: CardPayload = {}
Returns default < CardPayload >
create Image Section
create Image Section( url: string ) : default
Returns default
create List Item
create List Item( markers?: default [] ) : default
Returns default
create List Section
create List Section( tagName?: string , items?: default [] , attributes?: {} ) : default
Parameters
tagName: string = DEFAULT_LIST_SECTION_TAG_NAME
items: default [] = []
attributes: {} = {}
Returns default
create Marker
create Marker( value?: string , markups?: Markup [] ) : default
Parameters
Optional
value: string
markups: Markup [] = []
Returns default
create Markerable Section
create Markerable Section( type: LIST_ITEM , tagName: string , markers: default [] ) : default
Parameters
type: LIST_ITEM
tagName: string
markers: default []
Returns default
create Markerable Section( type: MARKUP_SECTION , tagName: string , markers: default [] ) : default
Parameters
type: MARKUP_SECTION
tagName: string
markers: default []
Returns default
create Markerable Section( type: Type , tagName: string , markers: default [] ) : never
Parameters
type: Type
tagName: string
markers: default []
Returns never
create Markup
create Markup( tagName: string , attributes?: Dict < string > ) : Markup
Parameters
tagName: string
attributes: Dict < string > = {}
create Markup Section
create Markup Section( tagName?: string , markers?: default [] , isGenerated?: boolean , attributes?: {} ) : default
Parameters
tagName: string = DEFAULT_MARKUP_SECTION_TAG_NAME
markers: default [] = []
isGenerated: boolean = false
attributes: {} = {}
Returns default
create Post
create Post( sections?: Cloneable < default > [] ) : default
Parameters
sections: Cloneable < default > [] = []
Returns default
The PostNodeBuilder is used to create new Post primitives, such as a MarkupSection, a CardSection, a Markup, etc. Every instance of an Editor has its own builder instance. The builder can be used inside an run callback to programmatically create new Post primitives to insert into the document. A PostNodeBuilder should be read from the Editor, not instantiated on its own.