Skip to content

Commit

Permalink
Merge pull request #56 from tinymce/feature/INT-2756
Browse files Browse the repository at this point in the history
INT-2756: add `statusbar` attribute
  • Loading branch information
lorenzo-pomili authored Jan 8, 2024
2 parents 684c7fa + c9666e4 commit 3dd9741
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- The `id` attribute was not being used as the id for the editor.

### Added
- Added new `statusbar` attribute that sets the editors `statusbar` config option.

## 2.0.2 - 2023-03-27

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
"webpack": "^5.75.0"
},
"dependencies": {},
"version": "2.0.3-rc",
"version": "2.1.0-rc",
"name": "@tinymce/tinymce-webcomponent"
}
1 change: 1 addition & 0 deletions src/main/ts/component/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const parseNumberOrString = (value: string) => /^\d+$/.test(value) ? Number.pars

const configAttributes: Record<string, (v: string) => unknown> = {
setup: parseGlobal, // function
statusbar: parseBooleanOrString, // boolean
toolbar: parseFalseOrString, // string or false
menubar: parseFalseOrString, // string or false
plugins: parseString, // string
Expand Down

0 comments on commit 3dd9741

Please sign in to comment.