- 添加 Babel 配置文件支持 ES6+ 语法转换 - 添加 ESLint 忽略规则和配置文件 - 添加 Git 忽略规则文件 - 添加 Travis CI 配置文件 - 添加 1.4.2 版本变更日志文件 - 添加 Helm 图表辅助模板文件 - 添加 Helm 忽略规则文件
17 lines
408 B
JavaScript
17 lines
408 B
JavaScript
import GGEditorCore from '@gg-editor-core/bundle';
|
|
import { EVENT_BEFORE_ADD_PAGE } from '@common/constants';
|
|
import track from '@helpers/track';
|
|
import { uniqueId } from '@utils';
|
|
|
|
export default class Editor extends GGEditorCore {
|
|
constructor(options) {
|
|
super(options);
|
|
|
|
this.id = uniqueId();
|
|
|
|
this.on(EVENT_BEFORE_ADD_PAGE, ({ className }) => {
|
|
track({ c1: className });
|
|
});
|
|
}
|
|
}
|