Browse Source

Fix requested changes

pull/4264/head
Alex Ritter 4 years ago
parent
commit
2d0653de9f
  1. 2
      src/editor/config/config.ts
  2. 7
      src/editor/index.ts

2
src/editor/config/config.ts

@ -1,5 +1,5 @@
export default { export default {
name: 'Editor',
// Style prefix // Style prefix
stylePrefix: 'gjs-', stylePrefix: 'gjs-',

7
src/editor/index.ts

@ -55,6 +55,7 @@
* @module Editor * @module Editor
*/ */
import { EventHandler } from 'backbone'; import { EventHandler } from 'backbone';
import { isUndefined } from 'underscore';
import { IBaseModule } from '../abstract/Module'; import { IBaseModule } from '../abstract/Module';
import cash from '../utils/cash-dom'; import cash from '../utils/cash-dom';
import html from '../utils/html'; import html from '../utils/html';
@ -212,8 +213,10 @@ export default class EditorModule implements IBaseModule<typeof defaults> {
} }
//@deprecated //@deprecated
getConfig(){ getConfig(prop?: string) {
return this.config const config = this.config;
//@ts-ignore
return isUndefined(prop) ? config : config[prop];
} }
/** /**

Loading…
Cancel
Save