updateEditMode() {
    const codeConverter = new CodeConverter();
    // check if wiki site resides in edit mode, by checking
    if (store.state.editMode) {
      const { editorDisabled } = store.state.settings;

      if (editorDisabled) {
        this._disableEditor();
      } else {
        this._enableEditor();
      }

      // connect some listeners
      eventProxy.on('createCode', () => this.addCoding());
      eventProxy.on('createInlineCode', () => this.addCoding(true));
      eventProxy.on('blockquote', () => this._createBlockQuote());
      eventProxy.on('alert', type => this._createAlert(type));
      eventProxy.on('paste', () => this._pasteClipboard());
      eventProxy.on('removeFormatting', type => this._removeFormatting(type));
      eventProxy.on('updateToc', () => tocSvc.synchronizeTableOfContents());
      // one time conversion of coding preview areas to editing areas
      codeConverter.convertPreviewAreasToEditableAreas();
      codeConverter.convertLineBreaksToNonBreaking();
    } else {
      this._hideInitializingWebPartContainer();
      this._scrollToStateLocation(history.state, true);
      ImagePreview.createImgListeners();

      codeConverter.convertLineBreaksToNonBreaking();
      codeConverter.convertCodingAreas();
      codeConverter.convertADTLinks();
      this._updatePrismStyle();
      this.highlightCode();
    }
  }
/**
   * Performs necessary actions according to edit/read-only mode
   * @public
   */
Performs necessary actions according to edit/read-only mode
@public
Performs necessary actions according to edit / read - only mode @public
updateEditMode() {
    const codeConverter = new CodeConverter();
    if (store.state.editMode) {
      const { editorDisabled } = store.state.settings;
      if (editorDisabled) {
        this._disableEditor();
      } else {
        this._enableEditor();
      }
      eventProxy.on('createCode', () => this.addCoding());
      eventProxy.on('createInlineCode', () => this.addCoding(true));
      eventProxy.on('blockquote', () => this._createBlockQuote());
      eventProxy.on('alert', type => this._createAlert(type));
      eventProxy.on('paste', () => this._pasteClipboard());
      eventProxy.on('removeFormatting', type => this._removeFormatting(type));
      eventProxy.on('updateToc', () => tocSvc.synchronizeTableOfContents());
      codeConverter.convertPreviewAreasToEditableAreas();
      codeConverter.convertLineBreaksToNonBreaking();
    } else {
      this._hideInitializingWebPartContainer();
      this._scrollToStateLocation(history.state, true);
      ImagePreview.createImgListeners();
      codeConverter.convertLineBreaksToNonBreaking();
      codeConverter.convertCodingAreas();
      codeConverter.convertADTLinks();
      this._updatePrismStyle();
      this.highlightCode();
    }
  }
updateEditMode ( ) { const codeConverter = new CodeConverter ( ) ; if ( store . state . editMode ) { const { editorDisabled } = store . state . settings ; if ( editorDisabled ) { this . _disableEditor ( ) ; } else { this . _enableEditor ( ) ; } eventProxy . on ( 'createCode' , ( ) => this . addCoding ( ) ) ; eventProxy . on ( 'createInlineCode' , ( ) => this . addCoding ( true ) ) ; eventProxy . on ( 'blockquote' , ( ) => this . _createBlockQuote ( ) ) ; eventProxy . on ( 'alert' , type => this . _createAlert ( type ) ) ; eventProxy . on ( 'paste' , ( ) => this . _pasteClipboard ( ) ) ; eventProxy . on ( 'removeFormatting' , type => this . _removeFormatting ( type ) ) ; eventProxy . on ( 'updateToc' , ( ) => tocSvc . synchronizeTableOfContents ( ) ) ; codeConverter . convertPreviewAreasToEditableAreas ( ) ; codeConverter . convertLineBreaksToNonBreaking ( ) ; } else { this . _hideInitializingWebPartContainer ( ) ; this . _scrollToStateLocation ( history . state , true ) ; ImagePreview . createImgListeners ( ) ; codeConverter . convertLineBreaksToNonBreaking ( ) ; codeConverter . convertCodingAreas ( ) ; codeConverter . convertADTLinks ( ) ; this . _updatePrismStyle ( ) ; this . highlightCode ( ) ; } }
Performs necessary actions according to edit/read-only mode
 @public
Performs necessary actions according to edit / read - only mode @public
// check if wiki site resides in edit mode, by checking // connect some listeners // one time conversion of coding preview areas to editing areas