|
@@ -26,57 +26,57 @@ if($('#mk-editor').length === 1) {
|
|
toolbar: [{
|
|
toolbar: [{
|
|
name: "bold",
|
|
name: "bold",
|
|
action: SimpleMDE.toggleBold,
|
|
action: SimpleMDE.toggleBold,
|
|
- className: "fa fa-bold",
|
|
|
|
|
|
+ className: "icon-bold",
|
|
title: "Bold",
|
|
title: "Bold",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "italic",
|
|
name: "italic",
|
|
action: SimpleMDE.toggleItalic,
|
|
action: SimpleMDE.toggleItalic,
|
|
- className: "fa fa-italic",
|
|
|
|
|
|
+ className: "icon-italic",
|
|
title: "Italic",
|
|
title: "Italic",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "strikethrough",
|
|
name: "strikethrough",
|
|
action: SimpleMDE.toggleStrikethrough,
|
|
action: SimpleMDE.toggleStrikethrough,
|
|
- className: "fa fa-strikethrough",
|
|
|
|
|
|
+ className: "icon-strikethrough",
|
|
title: "Strikethrough",
|
|
title: "Strikethrough",
|
|
},
|
|
},
|
|
'|',
|
|
'|',
|
|
{
|
|
{
|
|
name: "heading-1",
|
|
name: "heading-1",
|
|
action: SimpleMDE.toggleHeading1,
|
|
action: SimpleMDE.toggleHeading1,
|
|
- className: "fa fa-header fa-header-x fa-header-1",
|
|
|
|
|
|
+ className: "icon-header fa-header-x fa-header-1",
|
|
title: "Big Heading",
|
|
title: "Big Heading",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "heading-2",
|
|
name: "heading-2",
|
|
action: SimpleMDE.toggleHeading2,
|
|
action: SimpleMDE.toggleHeading2,
|
|
- className: "fa fa-header fa-header-x fa-header-2",
|
|
|
|
|
|
+ className: "icon-header fa-header-x fa-header-2",
|
|
title: "Medium Heading",
|
|
title: "Medium Heading",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "heading-3",
|
|
name: "heading-3",
|
|
action: SimpleMDE.toggleHeading3,
|
|
action: SimpleMDE.toggleHeading3,
|
|
- className: "fa fa-header fa-header-x fa-header-3",
|
|
|
|
|
|
+ className: "icon-header fa-header-x fa-header-3",
|
|
title: "Small Heading",
|
|
title: "Small Heading",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "quote",
|
|
name: "quote",
|
|
action: SimpleMDE.toggleBlockquote,
|
|
action: SimpleMDE.toggleBlockquote,
|
|
- className: "fa fa-quote-left",
|
|
|
|
|
|
+ className: "icon-quote-left",
|
|
title: "Quote",
|
|
title: "Quote",
|
|
},
|
|
},
|
|
'|',
|
|
'|',
|
|
{
|
|
{
|
|
name: "unordered-list",
|
|
name: "unordered-list",
|
|
action: SimpleMDE.toggleUnorderedList,
|
|
action: SimpleMDE.toggleUnorderedList,
|
|
- className: "fa fa-list-ul",
|
|
|
|
|
|
+ className: "icon-list-ul",
|
|
title: "Bullet List",
|
|
title: "Bullet List",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "ordered-list",
|
|
name: "ordered-list",
|
|
action: SimpleMDE.toggleOrderedList,
|
|
action: SimpleMDE.toggleOrderedList,
|
|
- className: "fa fa-list-ol",
|
|
|
|
|
|
+ className: "icon-list-ol",
|
|
title: "Numbered List",
|
|
title: "Numbered List",
|
|
},
|
|
},
|
|
'|',
|
|
'|',
|
|
@@ -88,7 +88,7 @@ if($('#mk-editor').length === 1) {
|
|
$('#modal-editor-link').slideToggle();
|
|
$('#modal-editor-link').slideToggle();
|
|
}*/
|
|
}*/
|
|
},
|
|
},
|
|
- className: "fa fa-link",
|
|
|
|
|
|
+ className: "icon-link2",
|
|
title: "Insert Link",
|
|
title: "Insert Link",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -98,7 +98,7 @@ if($('#mk-editor').length === 1) {
|
|
vueImage.open();
|
|
vueImage.open();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- className: "fa fa-image",
|
|
|
|
|
|
+ className: "icon-image3",
|
|
title: "Insert Image",
|
|
title: "Insert Image",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -108,9 +108,19 @@ if($('#mk-editor').length === 1) {
|
|
vueFile.open();
|
|
vueFile.open();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- className: "fa fa-file-text-o",
|
|
|
|
|
|
+ className: "icon-file-text-o",
|
|
title: "Insert File",
|
|
title: "Insert File",
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ name: "video",
|
|
|
|
+ action: (editor) => {
|
|
|
|
+ /*if(!mdeModalOpenState) {
|
|
|
|
+ vueFile.open();
|
|
|
|
+ }*/
|
|
|
|
+ },
|
|
|
|
+ className: "icon-video-camera2",
|
|
|
|
+ title: "Insert Video Player",
|
|
|
|
+ },
|
|
'|',
|
|
'|',
|
|
{
|
|
{
|
|
name: "inline-code",
|
|
name: "inline-code",
|
|
@@ -126,7 +136,7 @@ if($('#mk-editor').length === 1) {
|
|
editor.codemirror.doc.replaceSelections(curSel);
|
|
editor.codemirror.doc.replaceSelections(curSel);
|
|
|
|
|
|
},
|
|
},
|
|
- className: "fa fa-terminal",
|
|
|
|
|
|
+ className: "icon-terminal",
|
|
title: "Inline Code",
|
|
title: "Inline Code",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -143,7 +153,7 @@ if($('#mk-editor').length === 1) {
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- className: "fa fa-code",
|
|
|
|
|
|
+ className: "icon-code",
|
|
title: "Code Block",
|
|
title: "Code Block",
|
|
},
|
|
},
|
|
'|',
|
|
'|',
|
|
@@ -152,13 +162,13 @@ if($('#mk-editor').length === 1) {
|
|
action: (editor) => {
|
|
action: (editor) => {
|
|
//todo
|
|
//todo
|
|
},
|
|
},
|
|
- className: "fa fa-table",
|
|
|
|
|
|
+ className: "icon-table",
|
|
title: "Insert Table",
|
|
title: "Insert Table",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "horizontal-rule",
|
|
name: "horizontal-rule",
|
|
action: SimpleMDE.drawHorizontalRule,
|
|
action: SimpleMDE.drawHorizontalRule,
|
|
- className: "fa fa-minus",
|
|
|
|
|
|
+ className: "icon-minus2",
|
|
title: "Horizontal Rule",
|
|
title: "Horizontal Rule",
|
|
}
|
|
}
|
|
],
|
|
],
|