diff --git a/README.md b/README.md index 08dd845..ad72506 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ const quill = new Quill('#editor', { | attribute | description | type | default | | ------------------ | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------- | | full | if set `true`. width max will be 100% | `boolean` | `false` | -| fullSwtich | enable to choose insert a full width table | `boolean` | `true` | +| fullSwitch | enable to choose insert a full width table | `boolean` | `true` | | texts | the text used to create the table | `TableTextOptions` | `defaultTexts` | | customSelect | display a custom select to custom row and column number add a table. module provides default selector `defaultCustomSelect` | `(tableModule: TableUp, picker: Picker) => Promise \| HTMLElement` | - | | customBtn | display a custom button to custom row and column number add a table. it only when use `defaultCustomSelect` will effect | `boolean` | `false` | diff --git a/src/index.ts b/src/index.ts index a19942b..e09d658 100644 --- a/src/index.ts +++ b/src/index.ts @@ -345,7 +345,7 @@ export class TableUp { customBtn: false, texts: this.resolveTexts(options.texts || {}), full: false, - fullSwtich: true, + fullSwitch: true, icon: icons.table, selectionOptions: {}, alignOptions: {}, @@ -575,7 +575,7 @@ export class TableUp { dom.classList.add('ql-custom-select'); this.selector = await customSelect(this, picker); dom.appendChild(this.selector); - if (this.options.fullSwtich) { + if (this.options.fullSwitch) { const bem = createBEM('creator'); const isFulllLabel = document.createElement('label'); isFulllLabel.classList.add(bem.be('checkbox')); diff --git a/src/utils/types.ts b/src/utils/types.ts index 29f3e8f..4f52af8 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -54,7 +54,7 @@ export interface TableTextOptions extends TableCreatorTextOptions { export interface TableUpOptions { customSelect?: (tableModule: TableUp, picker: QuillThemePicker) => Promise | HTMLElement; full: boolean; - fullSwtich: boolean; + fullSwitch: boolean; customBtn: boolean; texts: TableTextOptions; icon: string;