/*! * 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 */ /** * @module plugins/tab */ import type { IJodit } from "../../../types/index"; /** * With `tab.spaces`, outside table cells: Tab at a caret inserts the spaces, * or a tab where white space is kept, as in `pre`, and in a list's first item * it indents the list, as Word does. Shift+Tab takes them out again. Tab or * Shift+Tab with a selection indents or outdents it. Neither moves the focus * on: Escape and then Tab does that * @private */ export declare function onTabSpaces(jodit: IJodit, shift: boolean): boolean; /** * With `tab.spaces`, Backspace just after that many spaces removes them * together, as it would a tab. With `upTo`, as for Shift+Tab, fewer will do, * if one of them is non-breaking, so a space between words stays * @private */ export declare function removeTabSpaces(jodit: IJodit, caret: Node, upTo?: boolean): boolean; /** * With `tab.spaces`, a tab in pasted text becomes the spaces, as HTML would * show it as one space. Tabs in white space that's kept, and those that only * lay out the HTML, stay as they are * @private */ export declare function tabsToSpaces(jodit: IJodit, html: string): string | void;