Skip to content

Commit 50405f8

Browse files
author
ety001
committed
add MaterialManager btn into the toolbar
1 parent d0c054b commit 50405f8

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Diff for: public/plugins/editor/languages/en.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
clear : "Clear",
4242
search : "Search",
4343
help : "Help",
44-
info : "About " + exports.title
44+
info : "About " + exports.title,
45+
material : "Material Manager"
4546
},
4647
buttons : {
4748
enter : "Enter",

Diff for: resources/assets/js/components/EditorComponent.vue

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ export default {
7474
};
7575
},
7676
mounted() {
77-
this.initEditorHeight();
7877
if (window.jQuery === undefined) {
7978
$s([
8079
'js/jquery-3.3.1.min.js',

Diff for: resources/assets/js/components/IndexComponent.vue

+9
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,22 @@ export default {
7676
previewCodeHighlight: false,
7777
emoji: true,
7878
toolbarIcons: () => [
79+
'material', '|',
7980
'undo', 'redo', '|',
8081
'bold', 'del', 'italic', 'quote', 'ucwords', 'uppercase', 'lowercase', '|',
8182
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', '|',
8283
'list-ul', 'list-ol', 'hr', '|',
8384
'link', 'reference-link', 'image', 'code', 'code-block', 'table', 'pagebreak', '|',
8485
'goto-line', 'clear', 'search', 'preview', 'watch', 'fullscreen',
8586
],
87+
toolbarIconTexts: {
88+
material: 'Material Manager',
89+
},
90+
toolbarHandlers: {
91+
material(cm, icon, cursor, selection) {
92+
window.consoleLog([cm, icon, cursor, selection]);
93+
},
94+
},
8695
onload: () => {
8796
window.consoleLog(['onload in indexcomponent config']);
8897
},

0 commit comments

Comments
 (0)