File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
apps/www/src/registry/components/editor Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 33import type { PlateEditor } from 'platejs/react' ;
44
55import { insertCallout } from '@platejs/callout' ;
6- import { insertCodeBlock } from '@platejs/code-block' ;
6+ import { insertCodeBlock , toggleCodeBlock } from '@platejs/code-block' ;
77import { insertDate } from '@platejs/date' ;
88import { insertColumnGroup , toggleColumnGroup } from '@platejs/layout' ;
99import { triggerFloatingLink } from '@platejs/link/react' ;
@@ -128,6 +128,7 @@ const setBlockMap: Record<
128128 [ KEYS . ol ] : setList ,
129129 [ KEYS . ul ] : setList ,
130130 [ ACTION_THREE_COLUMNS ] : ( editor ) => toggleColumnGroup ( editor , { columns : 3 } ) ,
131+ [ KEYS . codeBlock ] : ( editor ) => toggleCodeBlock ( editor ) ,
131132} ;
132133
133134export const setBlockType = (
You can’t perform that action at this time.
0 commit comments