src/components.js
/**
       * Things to do once inner components of custom code are changed
       */
Things to do once inner components of custom code are changed
Things to do once inner components of custom code are changed
onComponentsChange() {
        timedInterval && clearInterval(timedInterval);
        timedInterval = setTimeout(() => {
          const { model } = this;
          const content = model.get(keyCustomCode) || '';
          let droppable = 1;
          model.set({ droppable });
        }, 0);
      }
onComponentsChange ( ) { timedInterval && clearInterval ( timedInterval ) ; timedInterval = setTimeout ( ( ) => { const { model } = this ; const content = model . get ( keyCustomCode ) || '' ; let droppable = 1 ; model . set ( { droppable } ) ; } , 0 ) ; }
Things to do once inner components of custom code are changed
Things to do once inner components of custom code are changed
// Avoid rendering codes with scripts // if (content.indexOf('<script') >= 0) { //   this.el.innerHTML = opts.placeholderScript; //   droppable = 0; // }