File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import { Ref , watch , SetupContext } from 'vue' ;
10
10
import { IPropTypes } from './components/EditorPropTypes' ;
11
- import type { Editor as TinyMCEEditor , EditorEvent , TinyMCE } from 'tinymce' ;
12
- import { getTinymce } from './TinyMCE' ;
13
- import { TinyVer } from '@tinymce/miniature' ;
11
+ import type { Editor as TinyMCEEditor , EditorEvent } from 'tinymce' ;
14
12
15
13
const validEvents = [
16
14
'onActivate' ,
@@ -157,10 +155,7 @@ const mergePlugins = (initPlugins: string | string[] | undefined, inputPlugins?:
157
155
const isNullOrUndefined = ( value : any ) : value is null | undefined =>
158
156
value === null || value === undefined ;
159
157
160
- const isDisabledOptionSupported = ( ) : boolean => {
161
- const tinymce : TinyMCE = getTinymce ( ) ;
162
- return ! TinyVer . isLessThan ( tinymce , '7.6.0' ) ;
163
- } ;
158
+ const isDisabledOptionSupported = ( editor : TinyMCEEditor ) : boolean => typeof editor . options . set === 'function' && editor . options . isRegistered ( 'disabled' ) ;
164
159
165
160
export {
166
161
bindHandlers ,
You can’t perform that action at this time.
0 commit comments