mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 23:55:50 +00:00
markdown编辑器paste图片
This commit is contained in:
@@ -441,10 +441,10 @@ function pasteImage(e) {
|
||||
}
|
||||
|
||||
// 插入图片(链接)
|
||||
// TODO Markdown 插入图片
|
||||
// Markdown 插入图片
|
||||
function insertImage(link) {
|
||||
if(LEA.isMarkdownEditor()) {
|
||||
MD.insertLink(link);
|
||||
MD.insertLink(link, '', true);
|
||||
} else {
|
||||
tinymce.activeEditor.insertContent('<img src="' + link + '">');
|
||||
}
|
||||
|
Reference in New Issue
Block a user