修改项目结构,还有些混乱。

This commit is contained in:
virusdefender
2015-07-31 23:23:15 +08:00
parent c6d6b13072
commit 26dab5bd91
93 changed files with 48009 additions and 10 deletions

View File

@@ -0,0 +1,22 @@
define("editor", ["simditor"], function(Simditor){
function editor(selector){
return new Simditor({
textarea: $(selector),
toolbar: [
"bold", "color", "ol", "ul", "code", "link", "image"
],
toolbarFloat: false,
defaultImage: null,
upload: {
url: "",
params: null,
fileKey: "image",
connectionCount: 3,
leaveConfirm: "正在上传文件,如果离开上传会自动取消"
},
pasteImage: true,
imageButton: ["upload"]
});
}
return editor;
});