Files
cartlog-admin/node_modules/jodit/esm/plugins/enter/helpers/check-unsplittable-box.js
2026-01-01 15:25:19 +05:30

18 lines
567 B
JavaScript

/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import { Dom } from "../../../core/dom/dom.js";
/**
* Inside quote/tables cell, etc. you can't split so just add br
* @private
*/
export function checkUnsplittableBox(fake, jodit, currentBox) {
if (!Dom.canSplitBlock(currentBox)) {
Dom.before(fake, jodit.createInside.element('br'));
return false;
}
return true;
}