dist/dynamicContent/dynamicContent.service.js
/**
   * if the editors modal is closed/stopped the Components content visible
   * on the canvas and the html store item has to be updated
   */
if the editors modal is closed/stopped the Components content visible
on the canvas and the html store item has to be updated
if the editors modal is closed / stopped the Components content visible on the canvas and the html store item has to be updated
updateDcStoreItem() {
    const modalContent = mQuery('#dynamic-content-popup'); 
    if (!modalContent) {
      throw new Error('DC: No dynamic content popup found');
    }
    const dynamicContentContainer = mQuery('#dynamicContentContainer');
    const content = mQuery(modalContent).contents().first();
    dynamicContentContainer.append(content);
    modalContent.detach(); 
    this.logger.debug('DC: store item updated', {
      id: content.attr('id')
    });
  }
updateDcStoreItem ( ) { const modalContent = mQuery ( '#dynamic-content-popup' ) ; if ( ! modalContent ) { throw new Error ( 'DC: No dynamic content popup found' ) ; } const dynamicContentContainer = mQuery ( '#dynamicContentContainer' ) ; const content = mQuery ( modalContent ) . contents ( ) . first ( ) ; dynamicContentContainer . append ( content ) ; modalContent . detach ( ) ; this . logger . debug ( 'DC: store item updated' , { id : content . attr ( 'id' ) } ) ; }
if the editors modal is closed/stopped the Components content visible
 on the canvas and the html store item has to be updated
if the editors modal is closed / stopped the Components content visible on the canvas and the html store item has to be updated
// For the editing inside grapesjs the dynamcicontent popup is moved to the "grapesjs dom" // so it has to be moved back to the Mautic email form for saving. // On modal close -> move editor within Mautic // remove the modal