增加文本比较功能

This commit is contained in:
Minho
2017-06-09 18:14:55 +08:00
parent 33ad75a088
commit fc9a237259
63 changed files with 14512 additions and 23 deletions

View File

@@ -45,6 +45,18 @@ $(function () {
loadDocument($select_node);
}
}
uploadImage("docEditor",function ($state, $res) {
if($state === "before"){
return layer.load(1, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
}else if($state === "success"){
if($res.errcode === 0) {
var value = '![](' + $res.url + ')';
window.editor.insertValue(value);
}
}
});
},
onchange : function () {
resetEditorChanged(true);