Skip to content

BlockSuite API Documentation / @blocksuite/blocks / toggleCode

Function: toggleCode()

toggleCode(ctx, next): void

Parameters

ctx: CommandKeyToData<never> & InitCommandCtx

next

Returns

void

Source

packages/blocks/src/note-block/commands/text-style.ts:12