Compare commits

...

1 Commits

Author SHA1 Message Date
Innei b001761c13 ♻️ refactor(editor-canvas): import extractMediaFromEditorState from headless entry
Aligns with the headless subpath split in @lobehub/editor — only UI commands (INSERT_FILE_COMMAND, INSERT_IMAGE_COMMAND) come from the root entry; the pure extractor lives under /headless.
2026-06-05 11:38:50 +09:00
@@ -1,9 +1,6 @@
import type { IEditor } from '@lobehub/editor';
import {
extractMediaFromEditorState,
INSERT_FILE_COMMAND,
INSERT_IMAGE_COMMAND,
} from '@lobehub/editor';
import { INSERT_FILE_COMMAND, INSERT_IMAGE_COMMAND } from '@lobehub/editor';
import { extractMediaFromEditorState } from '@lobehub/editor/headless';
import type { SerializedEditorState } from 'lexical';
import { getFileIdForUrl } from './attachmentRegistry';