CodeBlockEditorProps interface

The properties passed to the CodeBlockEditorDescriptor.Editor component.

Signature:

export interface CodeBlockEditorProps 

Properties

PropertyModifiersTypeDescription
codestringThe code to edit.
focusEmitterVoidEmitterAn emitter that will execute its subscription when the editor should be focused. Note: you don't need to unsubscribe, the emiter has a single subscription model.
languagestringThe language of the fenced code block.
metastringThe meta of the fenced code block.
nodeKeystringThe key of the Lexical node - use this if you are dealing with the Lexical APIs.