()
| 69 | } |
| 70 | |
| 71 | public initView() { |
| 72 | const { |
| 73 | builtInEditorInitialActions, |
| 74 | builtInEditorInitialMenu, |
| 75 | BuiltInEditorOptions, |
| 76 | } = this.builtinService.getModules(); |
| 77 | |
| 78 | const defaultActions = this.editorService.getDefaultActions(); |
| 79 | if (!defaultActions.length) { |
| 80 | const builtinActions = builtInEditorInitialActions || []; |
| 81 | this.editorService.setDefaultActions(builtinActions); |
| 82 | } |
| 83 | |
| 84 | const defaultMenus = this.editorService.getDefaultMenus(); |
| 85 | if (!defaultMenus.length) { |
| 86 | const builtinMenus = builtInEditorInitialMenu || []; |
| 87 | this.editorService.setDefaultMenus(builtinMenus); |
| 88 | } |
| 89 | |
| 90 | this.editorService.setState({ |
| 91 | editorOptions: BuiltInEditorOptions || {}, |
| 92 | }); |
| 93 | } |
| 94 | |
| 95 | public open<T>(tab: IEditorTab<any>, groupId?: UniqueId) { |
| 96 | this.editorService.open<T>(tab, groupId); |
nothing calls this directly
no test coverage detected