fix TinyMCE Removes site base url

This commit is contained in:
life
2014-09-22 22:45:57 +08:00
parent 1fea36a7c1
commit 2221f146de
5 changed files with 10 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1350,7 +1350,6 @@ var Attach = {
var attachId = $(this).closest('li').data("id");
var attach = self.attachsMap[attachId];
var src = UrlPrefix + "/attach/download?attachId=" + attachId;
log(src);
if(LEA.isMarkdownEditor() && MarkdownEditor) {
MarkdownEditor.insertLink(src, attach.Title);
} else {

File diff suppressed because one or more lines are too long

View File

@ -186,6 +186,13 @@ $(function() {
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",
// height: 100,//这个应该是文档的高度, 而其上层的高度是$("#content").height(),
// parentHeight: $("#content").height(),