We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e134a6d commit f181d5eCopy full SHA for f181d5e
2 files changed
tinymce-angular-component/package.json
@@ -6,9 +6,6 @@
6
"author": "Ephox Corporation DBA Tiny Technologies, Inc.",
7
"license": "MIT",
8
"private": false,
9
- "dependencies": {
10
- "@tinymce/miniature": "^6.0.0"
11
- },
12
"peerDependencies": {
13
"@angular/core": ">=16.0.0",
14
"@angular/common": ">=16.0.0",
tinymce-angular-component/src/main/ts/utils/DisabledUtils.ts
@@ -1,10 +1,10 @@
1
-import { TinyVer } from '@tinymce/miniature';
2
import { getTinymce } from '../TinyMCE';
3
import { TinyMCE } from 'tinymce';
4
5
const isDisabledOptionSupported = () => {
const tiny: TinyMCE = getTinymce();
- return !TinyVer.isLessThan(tiny, '7.6.0');
+ // Disabled option is supported since Tiny 7.6.0
+ return Number(tiny.majorVersion) >= 7 && Number(tiny.minorVersion) >= 6;
};
export {
0 commit comments