src/modal_dialog/index.js
/**
     * Initialize module. Automatically called with a new instance of the editor
     * @param {Object} config Configurations
     * @private
     */
Initialize module. Automatically called with a new instance of the editor
@param {Object} config Configurations
@private
Initialize module . Automatically called with a new instance of the editor @param { Object } config Configurations @private
init(config = {}) {
      c = {
        ...defaults,
        ...config
      };
      const em = c.em;
      this.em = em;
      var ppfx = c.pStylePrefix;
      if (ppfx) c.stylePrefix = ppfx + c.stylePrefix;
      model = new ModalM(c);
      model.on('change:open', (m, enb) => triggerEvent(enb, em));
      modal = new ModalView({
        model,
        config: c
      });
      return this;
    }
init ( config = { } ) { c = { ... defaults , ... config } ; const em = c . em ; this . em = em ; var ppfx = c . pStylePrefix ; if ( ppfx ) c . stylePrefix = ppfx + c . stylePrefix ; model = new ModalM ( c ) ; model . on ( 'change:open' , ( m , enb ) => triggerEvent ( enb , em ) ) ; modal = new ModalView ( { model , config : c } ) ; return this ; }
Initialize module.
Initialize module .