diff --git a/src/config/menus.ts b/src/config/menus.ts index 8f9d251..37b2773 100644 --- a/src/config/menus.ts +++ b/src/config/menus.ts @@ -4,7 +4,7 @@ */ export default { - menus: ['bold', 'head', 'link', 'underline', 'strikethrough'], + menus: ['bold', 'head', 'link', 'underline', 'strikeThrough'], fontNames: ['宋体', '微软雅黑', 'Arial', 'Tahoma', 'Verdana'], diff --git a/src/menus/menu-list.ts b/src/menus/menu-list.ts index 55abd52..bdb6a50 100644 --- a/src/menus/menu-list.ts +++ b/src/menus/menu-list.ts @@ -7,12 +7,12 @@ import Bold from './bold/index' import Head from './head/index' import Link from './link/index' import Underline from './underline/index' -import Strikethrough from './strikethrough/index' +import StrikeThrough from './strike-through/index' export default { bold: Bold, head: Head, link: Link, underline: Underline, - strikethrough: Strikethrough, + strikeThrough: StrikeThrough, } diff --git a/src/menus/strikethrough/index.ts b/src/menus/strike-through/index.ts similarity index 93% rename from src/menus/strikethrough/index.ts rename to src/menus/strike-through/index.ts index e71cd8c..1f59942 100644 --- a/src/menus/strikethrough/index.ts +++ b/src/menus/strike-through/index.ts @@ -8,7 +8,7 @@ import $ from '../../utils/dom-core' import Editor from '../../editor/index' import { MenuActive } from '../menu-constructors/Menu' -class Strikethrough extends BtnMenu implements MenuActive { +class StrikeThrough extends BtnMenu implements MenuActive { constructor(editor: Editor) { const $elem = $( `