dist/dynamicContent/dynamicContent.service.js
/**
   * Get the content from the Html store and put the default content on the canvas.
   * Creates a store item (filter) in Mautic Form if new.
   * Wires up the ids.
   * E.g. if they are initialized from a {token}
   *
   * @param {GrapesJS Component} component
   */
Get the content from the Html store and put the default content on the canvas.
Creates a store item (filter) in Mautic Form if new.
Wires up the ids.

@param {GrapesJS Component} component
Get the content from the Html store and put the default content on the canvas . Creates a store item ( filter ) in Mautic Form if new . Wires up the ids . @param { GrapesJS Component } component
updateComponentFromDcStore(component) {
    let dataParamDecId = DynamicContentService.getDataParamDecid(component);
    let dcItem = this.getStoreItem(dataParamDecId); 
    dataParamDecId = DynamicContentService.getDataParamDecid(component);
    dcItem = this.getStoreItem(dataParamDecId); 
    this.updateComponent(component, dcItem);
    return true;
  }
updateComponentFromDcStore ( component ) { let dataParamDecId = DynamicContentService . getDataParamDecid ( component ) ; let dcItem = this . getStoreItem ( dataParamDecId ) ; dataParamDecId = DynamicContentService . getDataParamDecid ( component ) ; dcItem = this . getStoreItem ( dataParamDecId ) ; this . updateComponent ( component , dcItem ) ; return true ; }
Get the content from the Html store and put the default content on the canvas.
Get the content from the Html store and put the default content on the canvas .
// get the item/tab matching the dynamic content on the canvas // Load the html store item // Update the Grapesjs component with the content from the HTML store item