/** * @module plugins/inline-popup */ import type { IControlType, IJodit } from 'jodit/types'; import { attr } from 'jodit/core/helpers/utils'; import { deleteAction } from './actions/delete'; export default [ { name: 'eye', tooltip: 'Open link', exec: (editor: IJodit, current): void => { const href = attr(current as HTMLElement, 'href'); if (current && href) { editor.ow.open(href); } } }, deleteAction ] as Array;