Skip to content

Commit f181d5e

Browse files
TINY-11907: remove dependency
1 parent e134a6d commit f181d5e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

tinymce-angular-component/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
"author": "Ephox Corporation DBA Tiny Technologies, Inc.",
77
"license": "MIT",
88
"private": false,
9-
"dependencies": {
10-
"@tinymce/miniature": "^6.0.0"
11-
},
129
"peerDependencies": {
1310
"@angular/core": ">=16.0.0",
1411
"@angular/common": ">=16.0.0",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { TinyVer } from '@tinymce/miniature';
21
import { getTinymce } from '../TinyMCE';
32
import { TinyMCE } from 'tinymce';
43

54
const isDisabledOptionSupported = () => {
65
const tiny: TinyMCE = getTinymce();
7-
return !TinyVer.isLessThan(tiny, '7.6.0');
6+
// Disabled option is supported since Tiny 7.6.0
7+
return Number(tiny.majorVersion) >= 7 && Number(tiny.minorVersion) >= 6;
88
};
99

1010
export {

0 commit comments

Comments
 (0)