Skip to content

BlockSuite API Documentation / @blocksuite/blocks / MixTextAdapter

Class: MixTextAdapter

Extends

Constructors

new MixTextAdapter(undefined)

new MixTextAdapter(): MixTextAdapter

Returns

MixTextAdapter

Overrides

BaseAdapter.constructor

Source

packages/blocks/src/_common/adapters/mix-text.ts:38

Properties

_markdownAdapter

private _markdownAdapter: MarkdownAdapter

Source

packages/blocks/src/_common/adapters/mix-text.ts:37


configs

protected configs: Map<string, unknown>

Inherited from

BaseAdapter.configs

Source

packages/framework/store/dist/adapter/base.d.ts:41

Methods

_traverseSnapshot()

private _traverseSnapshot(snapshot): Promise<Object>

Parameters

snapshot: BlockSnapshot

Returns

Promise<Object>

mixtext

mixtext: string

Source

packages/blocks/src/_common/adapters/mix-text.ts:212


applyConfigs()

applyConfigs(configs): void

Parameters

configs: Map<string, unknown>

Returns

void

Inherited from

BaseAdapter.applyConfigs

Source

packages/framework/store/dist/adapter/base.d.ts:48


fromBlockSnapshot()

fromBlockSnapshot(__namedParameters): Promise<FromBlockSnapshotResult<string>>

Parameters

__namedParameters: FromBlockSnapshotPayload

Returns

Promise<FromBlockSnapshotResult<string>>

Overrides

BaseAdapter.fromBlockSnapshot

Source

packages/blocks/src/_common/adapters/mix-text.ts:61


fromDocSnapshot()

fromDocSnapshot(__namedParameters): Promise<FromDocSnapshotResult<string>>

Parameters

__namedParameters: FromDocSnapshotPayload

Returns

Promise<FromDocSnapshotResult<string>>

Overrides

BaseAdapter.fromDocSnapshot

Source

packages/blocks/src/_common/adapters/mix-text.ts:42


fromSliceSnapshot()

fromSliceSnapshot(__namedParameters): Promise<FromSliceSnapshotResult<string>>

Parameters

__namedParameters: FromSliceSnapshotPayload

Returns

Promise<FromSliceSnapshotResult<string>>

Overrides

BaseAdapter.fromSliceSnapshot

Source

packages/blocks/src/_common/adapters/mix-text.ts:71


toBlockSnapshot()

toBlockSnapshot(payload): BlockSnapshot

Parameters

payload: ToBlockSnapshotPayload<string>

Returns

BlockSnapshot

Overrides

BaseAdapter.toBlockSnapshot

Source

packages/blocks/src/_common/adapters/mix-text.ts:158


toDocSnapshot()

toDocSnapshot(payload): DocSnapshot

Parameters

payload: ToDocSnapshotPayload<string>

Returns

DocSnapshot

Overrides

BaseAdapter.toDocSnapshot

Source

packages/blocks/src/_common/adapters/mix-text.ts:88


toSliceSnapshot()

toSliceSnapshot(payload): Promise<null | SliceSnapshot>

Parameters

payload: MixTextToSliceSnapshotPayload

Returns

Promise<null | SliceSnapshot>

Overrides

BaseAdapter.toSliceSnapshot

Source

packages/blocks/src/_common/adapters/mix-text.ts:193