diff --git a/src/assets/styles/antd.scss b/src/assets/styles/antd.scss index 2713bdb9..14f8e7ae 100644 --- a/src/assets/styles/antd.scss +++ b/src/assets/styles/antd.scss @@ -19,4 +19,13 @@ } .ant-radio-button-wrapper { text-align: center; +} +.ant-slider-track { + background-color: $themeColor; +} +.ant-slider-handle { + border-color: $themeColor; +} +.ant-select { + user-select: none; } \ No newline at end of file diff --git a/src/prosemirror/commands/setTextAlign.ts b/src/prosemirror/commands/setTextAlign.ts index 9df55b66..14768be5 100644 --- a/src/prosemirror/commands/setTextAlign.ts +++ b/src/prosemirror/commands/setTextAlign.ts @@ -44,7 +44,7 @@ export const setTextAlign = (tr: Transaction, schema: Schema, alignment: string) let { attrs } = node if(alignment) attrs = { ...attrs, align: alignment } else attrs = { ...attrs, align: null } - tr = tr.setNodeMarkup(pos, nodeType, attrs, node.marks); + tr = tr.setNodeMarkup(pos, nodeType, attrs, node.marks) }) return tr diff --git a/src/utils/emitter.ts b/src/utils/emitter.ts index aa70c5e5..25894924 100644 --- a/src/utils/emitter.ts +++ b/src/utils/emitter.ts @@ -2,6 +2,7 @@ import mitt, { Emitter } from 'mitt' export enum EmitterEvents { UPDATE_TEXT_STATE = 'UPDATE_TEXT_STATE', + EXEC_TEXT_COMMAND = 'EXEC_TEXT_COMMAND', } const emitter: Emitter = mitt() diff --git a/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue index 2aff61c5..56e7cfa9 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue @@ -4,6 +4,7 @@ {{fontsize}} @@ -22,7 +24,10 @@