33 lines
972 B
TypeScript
33 lines
972 B
TypeScript
/*!
|
|
* 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
|
|
*/
|
|
/**
|
|
* @module plugins/wrap-nodes
|
|
*/
|
|
import type { HTMLTagNames } from "../../types/index";
|
|
declare module 'jodit/config' {
|
|
interface Config {
|
|
wrapNodes: {
|
|
/**
|
|
* List of tags that should not be wrapped
|
|
* Default: `new Set(['hr', 'style', 'br'])`
|
|
*/
|
|
exclude: Set<HTMLTagNames>;
|
|
/**
|
|
* If the editor is empty, then insert an empty paragraph into it
|
|
* ```javascript
|
|
* Jodit.make('#editor', {
|
|
* wrapNodes: {
|
|
* emptyBlockAfterInit: true
|
|
* }
|
|
* });
|
|
* ```
|
|
* Default: `true`
|
|
*/
|
|
emptyBlockAfterInit: boolean;
|
|
};
|
|
}
|
|
}
|