• Live demo
  • Docs
  • API Reference
GitHub
@mdxeditor/editor package
Classes
Functions
$createGenericHTMLNode()
$createImageNode()
$isGenericHTMLNode()
$isImageNode()
always()
call()
compose()
controlOrMeta()
curry1to0()
curry2to1()
defaultComparator()
fromWithinEditorRead()
getSelectedNode()
getSelectionRectangle()
getStateAsMarkdown()
isMdastJsxNode()
isPartOftheEditorUI()
joinProc()
makeHslTransparent()
noop()
prop()
realmFactoryToComponent()
realmPlugin()
replaceWhitespace()
tap()
thrush()
useCodeBlockEditorContext()
useLexicalNodeRemove()
useMdastNodeUpdater()
useNestedEditorContext()
uuidv4()
Types
Interfaces
Variables

useCodeBlockEditorContext() function

Use this hook in your custom code block editors to modify the underlying node code, language, and meta.

Signature:

export declare function useCodeBlockEditorContext(): CodeBlockEditorContextValue;

Returns:

CodeBlockEditorContextValue

  • useCodeBlockEditorContext() function
Copyright © 2023 Petyo Ivanov
  • GitHub
  • Twitter
  • LinkedIn
  • Email