function tableExtension(editor) {
  const {eventManager} = editor;

  editor.toMarkOptions = editor.toMarkOptions || {};
  editor.toMarkOptions.renderer = toMarkRenderer;
  _bindEvents(eventManager);

  if (editor.isViewer()) {
    return;
  }

  const wwComponentManager = editor.wwEditor.componentManager;
  const popupTableUtils = editor.getUI().getPopupTableUtils();

  _addCommands(editor);
  _changeWysiwygManagers(wwComponentManager);

  if (popupTableUtils) {
    mergedTableUI.updateContextMenu(popupTableUtils, eventManager, wwComponentManager.getManager('tableSelection'));
  }
}
function tableExtension(editor) {
  const {eventManager} = editor;

  editor.toMarkOptions = editor.toMarkOptions || {};
  editor.toMarkOptions.renderer = toMarkRenderer;
  _bindEvents(eventManager);

  if (editor.isViewer()) {
    return;
  }

  const wwComponentManager = editor.wwEditor.componentManager;
  const popupTableUtils = editor.getUI().getPopupTableUtils();

  _addCommands(editor);
  _changeWysiwygManagers(wwComponentManager);

  if (popupTableUtils) {
    mergedTableUI.updateContextMenu(popupTableUtils, eventManager, wwComponentManager.getManager('tableSelection'));
  }
}
function tableExtension ( editor ) { const { eventManager } = editor ; editor . toMarkOptions = editor . toMarkOptions || { } ; editor . toMarkOptions . renderer = toMarkRenderer ; _bindEvents ( eventManager ) ; if ( editor . isViewer ( ) ) { return ; } const wwComponentManager = editor . wwEditor . componentManager ; const popupTableUtils = editor . getUI ( ) . getPopupTableUtils ( ) ; _addCommands ( editor ) ; _changeWysiwygManagers ( wwComponentManager ) ; if ( popupTableUtils ) { mergedTableUI . updateContextMenu ( popupTableUtils , eventManager , wwComponentManager . getManager ( 'tableSelection' ) ) ; } }
table extension
@param {Editor} editor - editor instance
@ignore
table extension
Table Extension.