Skip to content

Commit bf19d2d

Browse files
mehmetsefabalikjaywcjlove
authored andcommitted
Update image.tsx
1 parent d2b1746 commit bf19d2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/image.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ export const image: ICommand = {
1111
</svg>
1212
),
1313
execute: (editor, selection, position) => {
14-
const value = selection ? `${selection} ![](图片地址 "图片描述")` : '![图片描述](图片地址 "图片描述")\n';
14+
const value = selection ? `${selection} ![]()` : '![]()\n';
1515
editor.replaceSelection(value);
1616
// position.ch = !!selection ? position.ch : position.ch + 1;
1717
editor.setCursor(position.line, position.ch);
1818
editor.focus();
1919
},
20-
};
20+
};

0 commit comments

Comments
 (0)