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 {
name: 'Editor',
// Style prefix
stylePrefix: 'gjs-',

7
src/editor/index.ts

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

Loading…
Cancel
Save