File tree Expand file tree Collapse file tree
apps/www/src/registry/blocks
editor-ai/components/editor
editor-basic/components/editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import * as React from 'react' ;
44
5+ import { normalizeNodeId } from 'platejs' ;
56import { Plate , usePlateEditor } from 'platejs/react' ;
67
78import { EditorKit } from '@/registry/blocks/editor-ai/components/editor/editor-kit' ;
@@ -25,7 +26,7 @@ export function PlateEditor() {
2526 ) ;
2627}
2728
28- const value = [
29+ const value = normalizeNodeId ( [
2930 {
3031 children : [ { text : 'Welcome to the Plate Playground!' } ] ,
3132 type : 'h1' ,
@@ -580,4 +581,4 @@ const value = [
580581 children : [ { text : '' } ] ,
581582 type : 'p' ,
582583 } ,
583- ] ;
584+ ] ) ;
Original file line number Diff line number Diff line change 11'use client' ;
22
3+ import { normalizeNodeId } from 'platejs' ;
34import { Plate , usePlateEditor } from 'platejs/react' ;
45
56import { BasicNodesKit } from '@/registry/components/editor/plugins/basic-nodes-kit' ;
@@ -20,7 +21,7 @@ export function PlateEditor() {
2021 ) ;
2122}
2223
23- const value = [
24+ const value = normalizeNodeId ( [
2425 {
2526 children : [ { text : 'Basic Editor' } ] ,
2627 type : 'h1' ,
@@ -51,4 +52,4 @@ const value = [
5152 ] ,
5253 type : 'p' ,
5354 } ,
54- ] ;
55+ ] ) ;
You can’t perform that action at this time.
0 commit comments