function changeButtonVisiblityStateIfNeed() {
    if (editor.mdPreviewStyle === 'vertical' && editor.currentMode === 'markdown') {
      button.$el.show();
      $divider.show();
    } else {
      button.$el.hide();
      $divider.hide();
    }
  }
function changeButtonVisiblityStateIfNeed() {
    if (editor.mdPreviewStyle === 'vertical' && editor.currentMode === 'markdown') {
      button.$el.show();
      $divider.show();
    } else {
      button.$el.hide();
      $divider.hide();
    }
  }
function changeButtonVisiblityStateIfNeed ( ) { if ( editor . mdPreviewStyle === 'vertical' && editor . currentMode === 'markdown' ) { button . $el . show ( ) ; $divider . show ( ) ; } else { button . $el . hide ( ) ; $divider . hide ( ) ; } }
change button visiblity state
change button visiblity state
Change the visibility state of the button