/*! * 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/add-new-line/README.md]] * @packageDocumentation * @module plugins/add-new-line */ import type { IJodit } from "../../types/index"; import { Plugin } from "../../modules/index"; import "./config"; /** * Create helper for adding new paragraph(Jodit.defaultOptions.enter tag) before iframe, table or image */ export declare class addNewLine extends Plugin { private __line; private __isMatchedTag; private __timeout; private __isBeforeContent; private __current; private __lineInFocus; private __isShown; private __show; private __hideForce; protected onLock(isLocked: true): void; private __hide; private __canGetFocus; protected afterInit(editor: IJodit): void; private __addEventListeners; /** * An empty line with a `
`, as Enter makes, so it keeps its height * without clean-html's fillEmptyParagraph (#1807) */ private __newLine; private __onClickLine; /** * A paragraph holding only an embed has no place for the caret, so the * arrow keys can't get past one that ends the content, or before one that * starts it. When an arrow key leaves the caret where it was and there is * content beyond it, a new line goes there, as when the line is clicked. */ protected onArrowKey(e: KeyboardEvent): void; protected onDblClickEditor(e: MouseEvent): void; private __onMouseMove; /** @override */ protected beforeDestruct(): void; }