BlockSuite API Documentation / @blocksuite/blocks / ParagraphService
Class: ParagraphService<TextAttributes>
Extends
Type parameters
• TextAttributes extends AffineTextAttributes = AffineTextAttributes
Constructors
new ParagraphService(options)
new ParagraphService<
TextAttributes>(options):ParagraphService<TextAttributes>
Parameters
• options: BlockServiceOptions
Returns
ParagraphService<TextAttributes>
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:16
Properties
disposables
readonlydisposables:DisposableGroup
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:14
flavour
readonlyflavour:string
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:13
inlineManager
readonlyinlineManager:InlineManager<TextAttributes>
Source
packages/blocks/src/paragraph-block/paragraph-service.ts:15
placeholderGenerator()
placeholderGenerator: (
model) =>string
Parameters
• model: ParagraphBlockModel
Returns
string
Source
packages/blocks/src/paragraph-block/paragraph-service.ts:30
referenceNodeConfig
readonlyreferenceNodeConfig:ReferenceNodeConfig
Source
packages/blocks/src/paragraph-block/paragraph-service.ts:16
specSlots
readonlyspecSlots:BlockSpecSlots
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:15
std
readonlystd:BlockStdScope
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:12
Accessors
collection
getcollection():DocCollection
Returns
Source
packages/framework/block-std/dist/service/index.d.ts:17
doc
getdoc():Doc
Returns
Source
packages/framework/block-std/dist/service/index.d.ts:18
host
gethost():HTMLElement
Returns
HTMLElement
Source
packages/framework/block-std/dist/service/index.d.ts:19
selectionManager
getselectionManager():SelectionManager
Returns
Source
packages/framework/block-std/dist/service/index.d.ts:20
uiEventDispatcher
getuiEventDispatcher():UIEventDispatcher
Returns
Source
packages/framework/block-std/dist/service/index.d.ts:21
Methods
bindHotKey()
bindHotKey(
keymap,options?):void
Parameters
• keymap: Record<string, UIEventHandler>
• options?
• options.global?: boolean
Returns
void
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:28
dispose()
dispose():
void
Returns
void
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:22
handleEvent()
handleEvent(
name,fn,options?):void
Parameters
• name: "click" | "doubleClick" | "tripleClick" | "pointerDown" | "pointerMove" | "pointerUp" | "pointerOut" | "dragStart" | "dragMove" | "dragEnd" | "keyDown" | "keyUp" | "selectionChange" | "compositionStart" | "compositionUpdate" | "compositionEnd" | "cut" | "copy" | "paste" | "beforeInput" | "blur" | "focus" | "drop" | "contextMenu" | "wheel"
• fn: UIEventHandler
• options?
• options.global?: boolean
Returns
void
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:25
mounted()
mounted():
void
Returns
void
Overrides
Source
packages/blocks/src/paragraph-block/paragraph-service.ts:18
unmounted()
unmounted():
void
Returns
void
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:24