Skip to content

Commit 8782642

Browse files
committed
fix
1 parent cc95a6b commit 8782642

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

apps/www/src/registry/blocks/editor-ai/components/editor/plate-editor.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import * as React from 'react';
44

5+
import { normalizeNodeId } from 'platejs';
56
import { Plate, usePlateEditor } from 'platejs/react';
67

78
import { 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+
]);

apps/www/src/registry/blocks/editor-basic/components/editor/plate-editor.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use client';
22

3+
import { normalizeNodeId } from 'platejs';
34
import { Plate, usePlateEditor } from 'platejs/react';
45

56
import { 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+
]);

0 commit comments

Comments
 (0)