File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,17 @@ export class EditorController extends Controller implements IEditorController {
69
69
BuiltInEditorOptions,
70
70
} = this . builtinService . getModules ( ) ;
71
71
72
- const builtinActions = builtInEditorInitialActions || [ ] ;
73
- this . editorService . setDefaultActions ( builtinActions ) ;
72
+ const defaultActions = this . editorService . getDefaultActions ( ) ;
73
+ if ( ! defaultActions . length ) {
74
+ const builtinActions = builtInEditorInitialActions || [ ] ;
75
+ this . editorService . setDefaultActions ( builtinActions ) ;
76
+ }
74
77
75
- const builtinMenus = builtInEditorInitialMenu || [ ] ;
76
- this . editorService . setDefaultMenus ( builtinMenus ) ;
78
+ const defaultMenus = this . editorService . getDefaultMenus ( ) ;
79
+ if ( ! defaultMenus . length ) {
80
+ const builtinMenus = builtInEditorInitialMenu || [ ] ;
81
+ this . editorService . setDefaultMenus ( builtinMenus ) ;
82
+ }
77
83
78
84
this . editorService . setState ( {
79
85
editorOptions : BuiltInEditorOptions || { } ,
You can’t perform that action at this time.
0 commit comments