forked from mirror/MrDoc
优化选择图片时图片名称包含空格的处理
This commit is contained in:
parent
668aeac15c
commit
50af971f68
@ -477,9 +477,9 @@ upload.render({
|
||||
//上传成功
|
||||
if(res.success == 1){
|
||||
if(editor_mode == 3){
|
||||
editor.addValue('<img src="' + res.url + '" />')
|
||||
editor.addValue('<img src="' + res.url.replace(" ",'%20') + '" />')
|
||||
}else{
|
||||
editor.insertValue("\n![](" + res.url + ")");
|
||||
editor.insertValue("\n![](" + res.url.replace(" ",'%20') + ")");
|
||||
}
|
||||
|
||||
layer.closeAll();
|
||||
|
Loading…
Reference in New Issue
Block a user