function sync(shouldParseHtml) {
      if (this.editor.currentView.name === "textarea") {
        this.fromTextareaToComposer(shouldParseHtml);
      } else {
        this.fromComposerToTextarea(shouldParseHtml);
      }
    }
/**
     * Invoke syncing based on view state
     * @param {Boolean} shouldParseHtml Whether the html should be sanitized before inserting it into the composer/textarea
     */
Invoke syncing based on view state
@param {Boolean} shouldParseHtml Whether the html should be sanitized before inserting it into the composer/textarea
Invoke syncing based on view state @param { Boolean } shouldParseHtml Whether the html should be sanitized before inserting it into the composer / textarea
function sync(shouldParseHtml) {
      if (this.editor.currentView.name === "textarea") {
        this.fromTextareaToComposer(shouldParseHtml);
      } else {
        this.fromComposerToTextarea(shouldParseHtml);
      }
    }
function sync ( shouldParseHtml ) { if ( this . editor . currentView . name === "textarea" ) { this . fromTextareaToComposer ( shouldParseHtml ) ; } else { this . fromComposerToTextarea ( shouldParseHtml ) ; } }
Invoke syncing based on view state
 @param {Boolean} shouldParseHtml Whether the html should be sanitized before inserting it into the composer/textarea
Invoke syncing based on view state @param { Boolean } shouldParseHtml Whether the html should be sanitized before inserting it into the composer / textarea