/*! * 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 */ /** * [[include:plugins/select-cells/README.md]] * @packageDocumentation * @module plugins/select-cells */ import type { IJodit } from "../../types/index"; import { Plugin } from "../../core/plugin/index"; import "./config"; export declare class selectCells extends Plugin { static requires: string[]; /** * Shortcut for Jodit.modules.Table */ private get __tableModule(); protected afterInit(jodit: IJodit): void; /** * The cell with the caret, and the selection, when a key went down */ private __keyDownCell; private __keyDownRange; private __onKeyDown; /** * A link's popup replaces the cell's while the caret is in the link */ private __keyDownInLink; private __isInLink; /** * Where the selection starts rather than `s.current()`, which finds the * first cell when the caret is just before the table */ private __caretCell; /** * A key that moves the caret into a cell, from another cell or from * outside the table, marks that cell and opens its popup, as a click on * it does. One that moves the caret out of the table unmarks the cells */ protected onKeyUp(): void; private __followCaret; /** * The box round the marked cells, which their popup opens beside and * follows when its commands add, merge or replace cells */ private __markedBound; /** * First selected cell */ private __selectedCell; /** * User is selecting cells now */ private __isSelectionMode; /** * The cell the marks were last drawn to */ private __movedTo; /** * A drag let go outside the table ends in a click on the editor, which * would unmark its cells */ private __keepMarks; /** * Mouse click inside the table */ protected onStartSelection(cell: HTMLTableCellElement, event?: MouseEvent): void | false; protected onOutsideClick(): void; protected onMouseDown(): void; /** * The click that ends a drag let go outside the table, and inside the * editor, lands on the editor. Taken on, it would unmark the cells and * close their popup. As for the click on a row after a drag over the * cells, the browser's own selection from the drag goes */ private __onClickAfterDrag; /** * The last press or key went to a popup, as to the cell popup's own * controls, whose changes keep the cells marked */ private __inPopup; protected onPress(e?: Event): void; protected onChange(): void; /** * Mouse move inside the table */ private __onMove; /** * On click in outside - remove selection */ private __onRemoveSelection; private __cellUnder; /** * Stop a selection process */ private __onStopSelection; /** * A drag let go outside the table doesn't reach the table's `mouseup`, so * the window's ends it, leaving the cells marked as they were (#1774) */ private __onRelease; private __showCellsPopup; private __stopListening; /** * Remove selection for all cells */ private unselectCells; /** * Execute custom commands for table */ private onExecCommand; /** * Turns the table's header row on or off. The caret and the marked cells * move to the cells that replace them */ private __toggleHeaderRow; /** * The cell that takes the caret when rows or columns are deleted: the next * one in the same column (or row) that is not deleted, else the previous one */ private __nearestCell; /** * Add some align after native command */ private onAfterCommand; /** * Remove the table and put the caret where it stood: at the start of what * follows it, else at the end of what precedes it */ private __removeTable; /** @override */ protected beforeDestruct(jodit: IJodit): void; }