Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
remove the module 'show' property
Browse files Browse the repository at this point in the history
  • Loading branch information
peak committed Mar 6, 2017
1 parent 7887202 commit df64573
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion src/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="toolbar" :style="{'z-index':zIndex+1}" ref="toolbar">
<ul>
<template v-for="module in modules">
<li v-if="module.show" :title="locale[module.i18n]" @click="activeModule(module)">
<li :title="locale[module.i18n]" @click="activeModule(module)">
<span class="icon" :class="module.icon"></span>
<template v-if="showModuleName || defaultShowModuleName">
&nbsp;{{locale[module.i18n]}}
Expand Down
1 change: 0 additions & 1 deletion src/modules/align/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default {
name: 'align',
icon: 'fa fa-align-center',
i18n: 'align',
show: true,
dashboard
}

1 change: 0 additions & 1 deletion src/modules/color/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ export default {
name: 'color',
icon: 'fa fa-paint-brush',
i18n: 'color',
show: true,
dashboard
}
1 change: 0 additions & 1 deletion src/modules/eraser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export default {
name: 'eraser',
icon: 'fa fa-eraser',
i18n: 'eraser',
show: true,
handler(editor) {
editor.execCommand('removeFormat')
}
Expand Down
1 change: 0 additions & 1 deletion src/modules/font/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ export default {
name: 'font',
icon: 'fa fa-font',
i18n: 'font',
show: true,
dashboard
}
1 change: 0 additions & 1 deletion src/modules/full-screen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export default {
name: 'full-screen',
icon: 'fa fa-arrows-alt',
i18n: 'full screen',
show: true,
handler(editor) {
editor.toggleFullScreen()
}
Expand Down
1 change: 0 additions & 1 deletion src/modules/hr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
export default {
name: 'hr',
icon: 'fa fa-minus',
show: true,
i18n: 'hr',
handler(editor) {
editor.execCommand('insertHorizontalRule')
Expand Down
1 change: 0 additions & 1 deletion src/modules/image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default {
name: 'image',
icon: 'fa fa-file-image-o',
i18n: 'image',
show: true,
config: {
server: null,
fieldName: 'image',
Expand Down
1 change: 0 additions & 1 deletion src/modules/info/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import dashboard from './dashboard'
export default {
name: 'info',
icon: 'fa fa-info',
show: true,
i18n: 'info',
// handler () {
//
Expand Down
1 change: 0 additions & 1 deletion src/modules/link/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import dashboard from './dashboard'
export default {
name: 'link',
icon: 'fa fa-chain',
show: true,
i18n: 'link',
dashboard
}
1 change: 0 additions & 1 deletion src/modules/list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import dashboard from './dashboard'
export default {
name: 'list',
icon: 'fa fa-list',
show: true,
i18n: 'list',
dashboard
}
1 change: 0 additions & 1 deletion src/modules/table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default {
name: 'tabulation',
icon: 'fa fa-table',
i18n: 'table',
show: true,
dashboard
}

1 change: 0 additions & 1 deletion src/modules/text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default {
name: 'text',
icon: 'fa fa-pencil',
i18n: 'text',
show: true,
dashboard
}

1 change: 0 additions & 1 deletion src/modules/undo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
export default {
name: 'undo',
icon: 'fa-undo fa',
show: true,
i18n: 'undo',
handler(editor) {
editor.execCommand('undo')
Expand Down
1 change: 0 additions & 1 deletion src/modules/unlink/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
export default {
name: 'unlink',
icon: 'fa fa-chain-broken',
show: true,
i18n: 'unlink',
handler(editor) {
editor.execCommand('unlink')
Expand Down

0 comments on commit df64573

Please sign in to comment.