|
@@ -88,11 +88,19 @@ if($('#mk-editor').length === 1) {
|
|
{
|
|
{
|
|
name: "image",
|
|
name: "image",
|
|
action: (editor) => {
|
|
action: (editor) => {
|
|
- //todo
|
|
|
|
|
|
+ $('#modal-editor-image').slideDown();
|
|
},
|
|
},
|
|
className: "fa fa-image",
|
|
className: "fa fa-image",
|
|
title: "Insert Image",
|
|
title: "Insert Image",
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ name: "file",
|
|
|
|
+ action: (editor) => {
|
|
|
|
+ //todo
|
|
|
|
+ },
|
|
|
|
+ className: "fa fa-file-text-o",
|
|
|
|
+ title: "Insert File",
|
|
|
|
+ },
|
|
'|',
|
|
'|',
|
|
{
|
|
{
|
|
name: "inline-code",
|
|
name: "inline-code",
|
|
@@ -106,7 +114,7 @@ if($('#mk-editor').length === 1) {
|
|
return '`' + s + '`';
|
|
return '`' + s + '`';
|
|
});
|
|
});
|
|
editor.codemirror.doc.replaceSelections(curSel);
|
|
editor.codemirror.doc.replaceSelections(curSel);
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
className: "fa fa-terminal",
|
|
className: "fa fa-terminal",
|
|
title: "Inline Code",
|
|
title: "Inline Code",
|