forked from mirror/MrDoc
优化编辑器插入附件的文件名显示
This commit is contained in:
parent
107d5275f7
commit
a438b16cfa
@ -444,7 +444,7 @@ insertAttach = function(e){
|
||||
if(editor_mode == 3){ // ice富文本编辑器
|
||||
editor.addValue('<a href= "/media/' + encodeURI($(e).data('path')) + '" download="' + $(e).data('name') + '">' + '[附件]' + $(e).data('name') + '</a>')
|
||||
}else{
|
||||
editor.insertValue("\n[【附件】"+ encodeURI($(e).data('name')) + "](/media/" + $(e).data('path') + ")");
|
||||
editor.insertValue("\n[【附件】"+ $(e).data('name') + "](/media/" + encodeURI($(e).data('path')) + ")");
|
||||
}
|
||||
layer.closeAll();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user