@kademi/keditor
Version:
KEditor is a jQuery plugin which provides a content editor with drag n drop, configurable contents
13 lines (10 loc) • 407 B
JavaScript
import initPreviewAction from './initPreviewAction';
import initFullscreenAction from './initFullscreenAction';
import initSaveAction from './initSaveAction';
export default function () {
let self = this;
let options = self.options;
initPreviewAction.apply(self);
initFullscreenAction.apply(self);
typeof options.onSave === 'function' && initSaveAction.apply(self);
};