/** * @module plugins/clipboard */ import type { IControlType, IJodit } from 'jodit/types'; import { Config } from 'jodit/config'; import { Icon } from 'jodit/core/ui/icon'; Config.prototype.controls.cut = { command: 'cut', isDisabled: (editor: IJodit) => editor.s.isCollapsed(), tooltip: 'Cut selection' } as IControlType; Config.prototype.controls.copy = { command: 'copy', isDisabled: (editor: IJodit) => editor.s.isCollapsed(), tooltip: 'Copy selection' } as IControlType; Config.prototype.controls.selectall = { icon: 'select-all', command: 'selectall', tooltip: 'Select all' } as IControlType; Icon.set('copy', require('./icons/copy.svg')) .set('cut', require('./icons/cut.svg')) .set('paste', require('./icons/paste.svg')) .set('select-all', require('./icons/select-all.svg'));