dist/dynamicContent/dynamicContent.service.js
/**
   * Set the html/content of the visible component on the canvas
   */
Set the html/content of the visible component on the canvas
Set the html / content of the visible component on the canvas
updateComponent(component, dcItem) {
    if (!component || !dcItem) {
      throw new Error('No component or dynamic content item');
    }
    this.logger.debug('DC: Updating DC component with values from store', {
      dcItem
    }); 
    component.addAttributes({
      'data-param-dec-id': dcItem.decId
    });
    component.set('content', dcItem.content);
    return component; 
  }
updateComponent ( component , dcItem ) { if ( ! component || ! dcItem ) { throw new Error ( 'No component or dynamic content item' ) ; } this . logger . debug ( 'DC: Updating DC component with values from store' , { dcItem } ) ; component . addAttributes ( { 'data-param-dec-id' : dcItem . decId } ) ; component . set ( 'content' , dcItem . content ) ; return component ; }
Set the html/content of the visible component on the canvas
Set the html / content of the visible component on the canvas
// Update the component on the canvas with new values from the html store // and link it  with the id to the html store // needed for new components // gets the default content to be displayed on the canvas. Should have been replaced by the `dcItem.content` // let dynConContent = ''; // if (dcItem.decId) { //   const dynConContainer = mQuery(dcTarget.htmlId).find(dcTarget.content); //   // is there content in the current editor? //   if (dynConContainer.hasClass('editor')) { //     dynConContent = dynConContainer.froalaEditor('html.get'); //   } else { //     dynConContent = dynConContainer.html(); //   } // }