/** * @module plugins/backspace */ import type { IJodit } from 'jodit/types'; /** * On Not collapsed selection - should only remove whole selected content * * @example * ```html *

first | stop

second | stop

* ``` * result * ```html *

first | stop

* ``` * @private */ export function checkNotCollapsed(jodit: IJodit): boolean { if (!jodit.s.isCollapsed()) { jodit.execCommand('Delete'); return true; } return false; }