mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-17 16:45:21 +00:00
markdown edtior 问题 图片上传 [ok] tab切换到内容编辑 [ok]
This commit is contained in:
@@ -1387,11 +1387,12 @@ function initUploadImage() {
|
||||
FileService.uploadImage(imagePath, function(newImage, msg) {
|
||||
if(newImage) {
|
||||
var note = Note.getCurNote();
|
||||
var url = EvtService.getImageLocalUrl(newImage.FileId);
|
||||
if(!note.IsMarkdown) {
|
||||
var url = EvtService.getImageLocalUrl(newImage.FileId);
|
||||
tinymce.activeEditor.insertContent('<img src="' + url + '">');
|
||||
} else {
|
||||
// TODO markdown insert Image
|
||||
MD.insertLink(url, '', true);
|
||||
}
|
||||
} else {
|
||||
alert(msg || "error");
|
||||
|
Reference in New Issue
Block a user