修改项目结构,还有些混乱。
This commit is contained in:
22
static/src/js/utils/editor.js
Normal file
22
static/src/js/utils/editor.js
Normal 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;
|
||||
});
|
||||
Reference in New Issue
Block a user