Skip to content

Commit d9a0f5b

Browse files
TINY-11907: apply codereview comment
1 parent f181d5e commit d9a0f5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
### Changed
1616
- Moved tinymce dependency to be a optional peer dependency. #INT-3324
1717
- Updated tinymce dev dependency to version ^7 from 5.10.7 so now all internal tinymce types point to version 7. #INT-3324
18-
- 'disabled' property is now mapped to editor's 'disabled' option if Tiny >= 7.6.0 is used. #TINY-11907
18+
- The 'disabled' property is now mapped to editor's 'disabled' option if Tiny >= 7.6.0 is used. #TINY-11907
1919

2020
## 8.0.1 - 2024-07-12
2121

tinymce-angular-component/src/main/ts/utils/DisabledUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { TinyMCE } from 'tinymce';
44
const isDisabledOptionSupported = () => {
55
const tiny: TinyMCE = getTinymce();
66
// Disabled option is supported since Tiny 7.6.0
7-
return Number(tiny.majorVersion) >= 7 && Number(tiny.minorVersion) >= 6;
7+
return Number(tiny.majorVersion) > 7 || (Number(tiny.majorVersion) === 7 && Number(tiny.minorVersion) >= 6);
88
};
99

1010
export {

0 commit comments

Comments
 (0)