UNPKG

jodit

Version:

Jodit is an awesome and useful wysiwyg editor with filebrowser

40 lines (39 loc) 1.11 kB
/*! * 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 */ /** * [[include:plugins/limit/README.md]] * @packageDocumentation * @module plugins/limit */ import type { IJodit } from "../../types/index"; import { Plugin } from "../../core/plugin/index"; import "./config"; /** * Plugin control for chars or words count */ export declare class limit extends Plugin { /** @override **/ protected afterInit(jodit: IJodit): void; /** * Action should be prevented */ private shouldPreventInsertHTML; private __shouldDenyInput; /** * Check if some keypress or paste should be prevented */ private checkPreventKeyPressOrPaste; /** * Check if some external changing should be prevented */ private checkPreventChanging; /** * Split text on words without technical characters */ private __splitWords; /** @override **/ protected beforeDestruct(jodit: IJodit): void; }