fix TinyMCE Removes site base url
This commit is contained in:
File diff suppressed because one or more lines are too long
2
public/js/app/note-min.js
vendored
2
public/js/app/note-min.js
vendored
File diff suppressed because one or more lines are too long
@ -1350,7 +1350,6 @@ var Attach = {
|
|||||||
var attachId = $(this).closest('li').data("id");
|
var attachId = $(this).closest('li').data("id");
|
||||||
var attach = self.attachsMap[attachId];
|
var attach = self.attachsMap[attachId];
|
||||||
var src = UrlPrefix + "/attach/download?attachId=" + attachId;
|
var src = UrlPrefix + "/attach/download?attachId=" + attachId;
|
||||||
log(src);
|
|
||||||
if(LEA.isMarkdownEditor() && MarkdownEditor) {
|
if(LEA.isMarkdownEditor() && MarkdownEditor) {
|
||||||
MarkdownEditor.insertLink(src, attach.Title);
|
MarkdownEditor.insertLink(src, attach.Title);
|
||||||
} else {
|
} else {
|
||||||
|
2
public/js/app/page-min.js
vendored
2
public/js/app/page-min.js
vendored
File diff suppressed because one or more lines are too long
@ -186,6 +186,13 @@ $(function() {
|
|||||||
log(ed.selection.getNode())
|
log(ed.selection.getNode())
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// fix TinyMCE Removes site base url
|
||||||
|
// http://stackoverflow.com/questions/3360084/tinymce-removes-site-base-urls
|
||||||
|
convert_urls:true,
|
||||||
|
relative_urls:false,
|
||||||
|
remove_script_host:false,
|
||||||
|
|
||||||
selector : "#editorContent",
|
selector : "#editorContent",
|
||||||
// height: 100,//这个应该是文档的高度, 而其上层的高度是$("#content").height(),
|
// height: 100,//这个应该是文档的高度, 而其上层的高度是$("#content").height(),
|
||||||
// parentHeight: $("#content").height(),
|
// parentHeight: $("#content").height(),
|
||||||
|
Reference in New Issue
Block a user