diff --git a/apps/www/src/registry/default/example/playground-demo.tsx b/apps/www/src/registry/default/example/playground-demo.tsx index a681966033..fe536b4da5 100644 --- a/apps/www/src/registry/default/example/playground-demo.tsx +++ b/apps/www/src/registry/default/example/playground-demo.tsx @@ -72,8 +72,6 @@ import { editorPlugins } from '@/registry/default/components/editor/plugins/edit import { useCreateEditor } from '@/registry/default/components/editor/use-create-editor'; import { Editor, EditorContainer } from '@/registry/default/plate-ui/editor'; -import { basicNodesValue } from './values/basic-nodes-value'; - export default function PlaygroundDemo({ className }: { className?: string }) { const value = usePlaygroundValue(); const enabled = usePlaygroundEnabled(); @@ -96,7 +94,7 @@ export default function PlaygroundDemo({ className }: { className?: string }) { enabled: process.env.NODE_ENV !== 'production', }), ], - value: [...basicNodesValue], + value: value, }, [] ); diff --git a/apps/www/src/registry/default/plate-ui/import-toolbar-button.tsx b/apps/www/src/registry/default/plate-ui/import-toolbar-button.tsx index f8a2e44f47..3b5a087972 100644 --- a/apps/www/src/registry/default/plate-ui/import-toolbar-button.tsx +++ b/apps/www/src/registry/default/plate-ui/import-toolbar-button.tsx @@ -36,8 +36,6 @@ export function ImportToolbarButton({ children, ...props }: DropdownMenuProps) { element: editorNode, }); - console.log('🚀 ~ onFilesSelected: ~ nodes:', nodes); - editor.tf.insertNodes(nodes); }, });