jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
26 lines (25 loc) • 603 B
JavaScript
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
*/
/**
* On Not collapsed selection - should only remove whole selected content
*
* @example
* ```html
* <p>first | stop</p><p>second | stop</p>
* ```
* result
* ```html
* <p>first | stop</p>
* ```
* @private
*/
export function checkNotCollapsed(jodit) {
if (!jodit.s.isCollapsed()) {
jodit.execCommand('Delete');
return true;
}
return false;
}