This commit is contained in:
1 parent
bcab2fc280
commit
932eb486fd
1 file changed
+1
-2
@@ -35,7 +35,6 @@ class ImagePreviewWidget extends WidgetType {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function getImageDecorationsForState(state: EditorState) {
|
||||
const widgets: Range<Decoration>[] = [];
|
||||
|
||||
@@ -44,7 +43,7 @@ function getImageDecorationsForState(state: EditorState) {
|
||||
name: string;
|
||||
from: number;
|
||||
to: number;
|
||||
node: { getChild: (type: string) => any };
|
||||
node: { getChild: (type: string) => { from: number; to: number } | null };
|
||||
}) => {
|
||||
if (node.name === 'Image') {
|
||||
// 查找图片语法中的 URL 节点
|
||||
|
||||
Reference in new issue
Block a user