add attachment feature,
1) upload, delete,
2) link attach into content (include tinymce & markdown)

markdown-editor.js add insertLink function to add link into markdown
content, usage:
MarkdownEditor.insertLink(link, title)

paste plugin edit for safety image
This commit is contained in:
life
2014-09-21 22:09:54 +08:00
parent c556ab59b5
commit 2ddbeb5b11
11 changed files with 52 additions and 14 deletions

View File

@ -117,4 +117,4 @@
writeScripts();
})(this);
// $hash: cbcf61872b3ecc41bd22dcf691e2e4dd
// $hash: 3d47d6168ca064ff0c3f626e575ff2e8

View File

@ -472,7 +472,7 @@ define("tinymce/pasteplugin/Clipboard", [
var c = new FormData;
c.append("from", "pasteImage");
c.append("file", blob);
c.append("noteId", Note.curNoteId);
c.append("noteId", Note.curNoteId); // life
// var d;
// d = $.ajaxSettings.xhr();
// d.withCredentials = i;var d = {};

File diff suppressed because one or more lines are too long