-
Notifications
You must be signed in to change notification settings - Fork 344
/
config.ts
38 lines (33 loc) · 827 Bytes
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
/**
* @module plugins/wrap-nodes
*/
import type { HTMLTagNames } from 'jodit/types';
import { Config } from 'jodit/config';
declare module 'jodit/config' {
interface Config {
wrapNodes: {
exclude: Set<HTMLTagNames>;
/**
* If the editor is empty, then insert an empty paragraph into it
* @example
* ```javascript
* Jodit.make('#editor', {
* wrapNodes: {
* emptyBlockAfterInit: true
* }
* });
* ```
*/
emptyBlockAfterInit: boolean;
};
}
}
Config.prototype.wrapNodes = {
exclude: new Set(['hr', 'style', 'br']),
emptyBlockAfterInit: true
};