UNPKG

jodit

Version:

Jodit is an awesome and useful wysiwyg editor with filebrowser

28 lines (27 loc) 644 B
/*! * 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 */ import { Dom } from "../../../core/dom/dom.js"; /** * Inside the CELL table - nothing to do * * @example * ```html * <table><tr><td>|test</td></tr></table> * ``` * result * ```html * <table><tr><td>|test</td></tr></table> * ``` * * @private */ export function checkTableCell(jodit, fakeNode) { const cell = fakeNode.parentElement; if (Dom.isCell(cell)) { return true; } return false; }