diff --git a/src/platform/editor/base-editor.ts b/src/platform/editor/base-editor.ts index 6c56aff..223253d 100644 --- a/src/platform/editor/base-editor.ts +++ b/src/platform/editor/base-editor.ts @@ -23,7 +23,7 @@ export abstract class BaseEditor implements AfterViewInit, OnDestroy { } get options(): any { - return this._options; + return this._options || this.config.defaultOptions; } constructor(private config: NgxMonacoEditorConfig) {}