@progress/kendo-react-editor 5.2.0 → 5.3.0-dev.202205040828

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * @hidden
3
3
  */
4
- export declare const defaultStyle = "\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n}\n\nbody > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n}\n\n.k-content > p {\n margin: 0 0 1em;\n}\n\n.k-content table {\n white-space: pre-wrap;\n}\n\n.k-content .k-text-selected, .k-content::selection {\n color: HighlightText;\n background-color: Highlight;\n}\n\n.k-content .k-text-highlighted {\n background-color: #bbdefb;\n}\n\n.k-content .ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: \"\";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n";
4
+ export declare const defaultStyle = "\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n}\n\nbody > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n}\n\n.k-content > p {\n margin: 0 0 1em;\n}\n\n.k-content table {\n white-space: pre-wrap;\n}\n\n.k-content .k-text-selected, .k-content::selection {\n color: HighlightText;\n background-color: Highlight;\n}\n\n.k-content .k-text-highlighted {\n background-color: #bbdefb;\n}\n\n.k-content .ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: \"\";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n\n.k-editor-resize-wrap-element {\n display: inline-block;\n position: relative;\n}\n\n.ProseMirror .row-resize-handle {\n position: absolute;\n right: 0; left: 0; bottom: 0;\n transform: translate(0, 50%);\n height: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n}\n\n.ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n}\n\n.ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n}\n\n.ProseMirror.resize-cursor-vertical {\n cursor: sn-resize;\n cursor: row-resize;\n}\n\n.k-editor-resize-wrap-element table td p,\n.k-editor-resize-wrap-element table th p {\n margin: 0 auto;\n}\n";
5
5
  /**
6
6
  * @hidden
7
7
  */
8
- export declare const tablesStyles = "\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: \"\";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n";
8
+ export declare const tablesStyles = "\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: \"\";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n";
9
9
  /**
10
10
  * @hidden
11
11
  */
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /**
4
4
  * @hidden
5
5
  */
6
- exports.defaultStyle = "\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n}\n\nbody > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n}\n\n.k-content > p {\n margin: 0 0 1em;\n}\n\n.k-content table {\n white-space: pre-wrap;\n}\n\n.k-content .k-text-selected, .k-content::selection {\n color: HighlightText;\n background-color: Highlight;\n}\n\n.k-content .k-text-highlighted {\n background-color: #bbdefb;\n}\n\n.k-content .ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: \"\";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n";
6
+ exports.defaultStyle = "\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n}\n\nbody > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n}\n\n.k-content > p {\n margin: 0 0 1em;\n}\n\n.k-content table {\n white-space: pre-wrap;\n}\n\n.k-content .k-text-selected, .k-content::selection {\n color: HighlightText;\n background-color: Highlight;\n}\n\n.k-content .k-text-highlighted {\n background-color: #bbdefb;\n}\n\n.k-content .ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: \"\";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n\n.k-editor-resize-wrap-element {\n display: inline-block;\n position: relative;\n}\n\n.ProseMirror .row-resize-handle {\n position: absolute;\n right: 0; left: 0; bottom: 0;\n transform: translate(0, 50%);\n height: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n}\n\n.ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n}\n\n.ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n}\n\n.ProseMirror.resize-cursor-vertical {\n cursor: sn-resize;\n cursor: row-resize;\n}\n\n.k-editor-resize-wrap-element table td p,\n.k-editor-resize-wrap-element table th p {\n margin: 0 auto;\n}\n";
7
7
  /**
8
8
  * @hidden
9
9
  */
10
- exports.tablesStyles = "\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: \"\";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n";
10
+ exports.tablesStyles = "\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: \"\";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n";
11
11
  /**
12
12
  * @hidden
13
13
  */
@@ -7,7 +7,7 @@ exports.packageMetadata = {
7
7
  name: '@progress/kendo-react-editor',
8
8
  productName: 'KendoReact',
9
9
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1649314621,
10
+ publishDate: 1651652236,
11
11
  version: '',
12
12
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
13
13
  };
@@ -10,13 +10,13 @@ export declare namespace EditorUtils {
10
10
  /**
11
11
  * Aligns the block elements in the selection.
12
12
  *
13
- * @returns {boolean} - If alignment is applied to any of the elements, returns `true`.
13
+ * @returns {boolean}—If alignment is applied to any of the elements, returns `true`.
14
14
  */
15
15
  function alignBlocks(view: EditorView<any>, actions: EditorToolsSettings.AlignAction[], command?: EditorToolsSettings.Command): boolean;
16
16
  /**
17
17
  * Wraps the selection in a `span` element with inline styles.
18
18
  *
19
- * @returns {boolean} - If a style is applied to any of the elements, returns `true`.
19
+ * @returns {boolean}&mdash;If a style is applied to any of the elements, returns `true`.
20
20
  */
21
21
  function applyInlineStyle(view: EditorView<any>, options: {
22
22
  style: string;
@@ -25,7 +25,7 @@ export declare namespace EditorUtils {
25
25
  /**
26
26
  * Applies the link mark.
27
27
  *
28
- * @returns {boolean} - If the link is applied, returns `true`.
28
+ * @returns {boolean}&mdash;If the link is applied, returns `true`.
29
29
  */
30
30
  function applyLink(view: any, options: {
31
31
  mark: string;
@@ -40,9 +40,9 @@ export declare namespace EditorUtils {
40
40
  /**
41
41
  * Checks if a node can be inserted in the current selection.
42
42
  *
43
- * @param {EditorState} state - The `state` object of the Editor.
44
- * @param {NodeType} nodeType - The type of the node that will be inserted.
45
- * @returns {boolean} - The node of this type can be inserted in the current selection.
43
+ * @param {EditorState} state&mdash;The `state` object of the Editor.
44
+ * @param {NodeType} nodeType&mdash;The type of the node that will be inserted.
45
+ * @returns {boolean}&mdash;The node of this type can be inserted in the current selection.
46
46
  */
47
47
  function canInsert(state: EditorState<any>, nodeType: NodeType<any>): boolean;
48
48
  /**
@@ -58,26 +58,26 @@ export declare namespace EditorUtils {
58
58
  /**
59
59
  * Converts the MS Word lists into HTML lists.
60
60
  *
61
- * @param {string} html - The input HTML.
62
- * @returns {string} - The result HTML.
61
+ * @param {string} html&mdash;The input HTML.
62
+ * @returns {string}&mdash;The result HTML.
63
63
  */
64
64
  function convertMsLists(html: string): string;
65
65
  /**
66
66
  * Creates an Editor document from HTML content.
67
67
  *
68
- * @param {Schema} schema - The `schema` object of the Editor.
69
- * @param {string} html - The HTML content.
70
- * @param {ParseOptions} parseOptions - The HTML parsing options. Defaults to `{ preserveWhitespace: 'full' }`.
71
- * @returns {Node} - The `document` object of the Editor.
68
+ * @param {Schema} schema&mdash;The `schema` object of the Editor.
69
+ * @param {string} html&mdash;The HTML content.
70
+ * @param {ParseOptions} parseOptions&mdash;The HTML parsing options. Defaults to `{ preserveWhitespace: 'full' }`.
71
+ * @returns {Node}&mdash;The `document` object of the Editor.
72
72
  */
73
73
  function createDocument(schema: Schema<any, any>, html: string, parseOptions?: ParseOptions<any>): Node<any>;
74
74
  /**
75
75
  * Creates a table.
76
76
  *
77
- * @param {object} tableTypes - An object which contains `table`, `table_row`, and `table_cell` node types.
78
- * @param {number} rows - The number of rows.
79
- * @param {number} columns - The number of columns.
80
- * @returns {Node<any>} - The generated table.
77
+ * @param {object} tableTypes&mdash;An object which contains `table`, `table_row`, and `table_cell` node types.
78
+ * @param {number} rows&mdash;The number of rows.
79
+ * @param {number} columns&mdash;The number of columns.
80
+ * @returns {Node<any>}&mdash;The generated table.
81
81
  *
82
82
  * @example
83
83
  * ```jsx-no-run
@@ -98,7 +98,7 @@ export declare namespace EditorUtils {
98
98
  /**
99
99
  * Formats the paragraph and heading nodes in the selection.
100
100
  *
101
- * @returns {boolean} - If an element is formatted, returns `true`.
101
+ * @returns {boolean}&mdash;If an element is formatted, returns `true`.
102
102
  */
103
103
  function formatBlockElements(view: EditorView<any>, value: 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', commandName?: EditorToolsSettings.Command): boolean;
104
104
  /**
@@ -110,16 +110,16 @@ export declare namespace EditorUtils {
110
110
  /**
111
111
  * Gets the HTML from the `EditorState` object.
112
112
  *
113
- * @param {EditorState} state - The `state` object of the Editor or an object containing editor's `doc` and `schema`
114
- * - { doc: value, schema: value.types.schema } where the `value` variable is the editor's value prop.
115
- * @returns {string} - The HTML content.
113
+ * @param {EditorState} state&mdash;The `state` object of the Editor or an object containing editor's `doc` and `schema`
114
+ *&mdash;{ doc: value, schema: value.types.schema } where the `value` variable is the editor's value prop.
115
+ * @returns {string}&mdash;The HTML content.
116
116
  */
117
117
  function getHtml(state: EditorState<any> | {
118
118
  doc: Node;
119
119
  schema: Schema;
120
120
  }): string;
121
121
  /**
122
- * @returns {string[]} - An array of matched styles that are found in the selection.
122
+ * @returns {string[]}&mdash;An array of matched styles that are found in the selection.
123
123
  */
124
124
  function getInlineStyles(state: EditorState<any>, style: {
125
125
  name: string;
@@ -146,22 +146,22 @@ export declare namespace EditorUtils {
146
146
  /**
147
147
  * Indents the block elements in the selection.
148
148
  *
149
- * @returns {boolean} - If indentation is applied to any of the elements, returns `true`.
149
+ * @returns {boolean}&mdash;If indentation is applied to any of the elements, returns `true`.
150
150
  */
151
151
  function indentBlocks(view: EditorView<any>, actions: EditorToolsSettings.IndentAction[], command?: EditorToolsSettings.Command, dir?: string): boolean;
152
152
  /**
153
153
  * Adds new lines after block elements and hard breaks.
154
154
  *
155
- * @param {string} content - The HTML content.
156
- * @returns {string} - The indented HTML.
155
+ * @param {string} content&mdash;The HTML content.
156
+ * @returns {string}&mdash;The indented HTML.
157
157
  */
158
158
  function indentHtml(content: string): string;
159
159
  /**
160
160
  * Inserts a node in the selection.
161
161
  *
162
- * @param {EditorView} view - The `view` object of the Editor.
163
- * @param {Node} node - A `node` object of the Editor.
164
- * @param {boolean} scrollIntoView - An optional parameter.
162
+ * @param {EditorView} view&mdash;The `view` object of the Editor.
163
+ * @param {Node} node&mdash;A `node` object of the Editor.
164
+ * @param {boolean} scrollIntoView&mdash;An optional parameter.
165
165
  * Defines if the content element will be scrolled to the current selection.
166
166
  */
167
167
  function insertNode(view: EditorView<any> | {
@@ -183,8 +183,8 @@ export declare namespace EditorUtils {
183
183
  /**
184
184
  * Removes the comments from the HTML.
185
185
  *
186
- * @param {string} html - The input HTML.
187
- * @returns {string} - The result HTML.
186
+ * @param {string} html&mdash;The input HTML.
187
+ * @returns {string}&mdash;The result HTML.
188
188
  *
189
189
  * @example
190
190
  * ```jsx-no-run
@@ -196,10 +196,10 @@ export declare namespace EditorUtils {
196
196
  /**
197
197
  * Removes the specified tag from the HTML and keeps its child nodes.
198
198
  *
199
- * @param {string} html - The input HTML.
200
- * @param {string} tag - A tag or multiple tags separated by a vertical slash which will be removed.
199
+ * @param {string} html&mdash;The input HTML.
200
+ * @param {string} tag&mdash;A tag or multiple tags separated by a vertical slash which will be removed.
201
201
  * For example, `span` or `b|i|u|span`.
202
- * @returns {string} - The resulting HTML.
202
+ * @returns {string}&mdash;The resulting HTML.
203
203
  *
204
204
  * @example
205
205
  * ```jsx-no-run
@@ -211,9 +211,9 @@ export declare namespace EditorUtils {
211
211
  /**
212
212
  * A function for sanitizing the content on paste ([see example]({% slug paste_editor %})).
213
213
  *
214
- * @param {string} html - The input HTML.
215
- * @param {PasteCleanupSettings} settings - The settings used for sanitizing the content.
216
- * @returns {string} - The resulting HTML.
214
+ * @param {string} html&mdash;The input HTML.
215
+ * @param {PasteCleanupSettings} settings&mdash;The settings used for sanitizing the content.
216
+ * @returns {string}&mdash;The resulting HTML.
217
217
  */
218
218
  function pasteCleanup(html: string, settings: PasteCleanupSettings): string;
219
219
  /**
@@ -221,7 +221,7 @@ export declare namespace EditorUtils {
221
221
  * The function will remove any class attribute which value starts with `Mso`.
222
222
  * For example `<p class="MsoNormal">pasted from MS Word</p>` will result in `<p>pasted from MS Word</p>`.
223
223
  *
224
- * @param {Attr} attr - The DOM class attribute that will be sanitized.
224
+ * @param {Attr} attr&mdash;The DOM class attribute that will be sanitized.
225
225
  */
226
226
  function sanitizeClassAttr(attr: Attr): void;
227
227
  /**
@@ -230,20 +230,20 @@ export declare namespace EditorUtils {
230
230
  * For example `<p><span style='color:#7C7C7C;mso-themecolor:accent3;mso-themeshade:191;background:silver;'>content</span></p>`,
231
231
  * will result in `<p><span style="color: #7C7C7C; background: silver;">content</span></p>`.
232
232
  *
233
- * @param {Attr} attr - The DOM style attribute that will be sanitized.
233
+ * @param {Attr} attr&mdash;The DOM style attribute that will be sanitized.
234
234
  */
235
235
  function sanitizeStyleAttr(attr: Attr): void;
236
236
  /**
237
237
  * A function that will remove a DOM attribute from the pasted content ([see example]({% slug paste_editor %})).
238
238
  *
239
- * @param {Attr} attr - The DOM attribute that will be removed.
239
+ * @param {Attr} attr&mdash;The DOM attribute that will be removed.
240
240
  */
241
241
  function removeAttribute(attr: Attr): void;
242
242
  /**
243
243
  * Removes the invalid HTML.
244
244
  *
245
- * @param {string} html - The HTML which will be sanitized.
246
- * @returns {string} - The sanitized HTML.
245
+ * @param {string} html&mdash;The HTML which will be sanitized.
246
+ * @returns {string}&mdash;The sanitized HTML.
247
247
  *
248
248
  * @example
249
249
  * ```jsx-no-run
@@ -256,16 +256,16 @@ export declare namespace EditorUtils {
256
256
  * If the input `html` contains images with 'src' pointing to local file system (it happens when pasting images and text from MS Word),
257
257
  * the function will extract the images sources from the RTF in base64 format and replace them in the input `html`.
258
258
  *
259
- * @param html - The input HTML (pasted HTML).
260
- * @param clipboardData - The paste event clipboardData object (event.clipboardData).
261
- * @returns - The html with the replaced images sources.
259
+ * @param html&mdash;The input HTML (pasted HTML).
260
+ * @param clipboardData&mdash;The paste event clipboardData object (event.clipboardData).
261
+ * @returns&mdash;The html with the replaced images sources.
262
262
  */
263
263
  function replaceImageSourcesFromRtf(html: string, clipboardData: DataTransfer): string;
264
264
  /**
265
265
  * Creates a plugin which highlights the matches of Find and Replace dialog.
266
266
  *
267
- * @param {PluginKey} key - The key of the plugin (Optional).
268
- * @returns {Plugin} - The text highlight plugin.
267
+ * @param {PluginKey} key&mdash;The key of the plugin (Optional).
268
+ * @returns {Plugin}&mdash;The text highlight plugin.
269
269
  */
270
270
  function textHighlight(key?: PluginKey): Plugin;
271
271
  /**
@@ -276,19 +276,25 @@ export declare namespace EditorUtils {
276
276
  /**
277
277
  * Creates a plugin which adds image resizing functionality.
278
278
  *
279
- * @param {ImageResizeOptions} options - The resizing option (Optional).
280
- * @returns {Plugin} - The image resizing plugin.
279
+ * @param {ImageResizeOptions} options&mdash;The resizing option (Optional).
280
+ * @returns {Plugin}&mdash;The image resizing plugin.
281
281
  */
282
282
  function imageResizing(options?: ImageResizeOptions): Plugin;
283
+ /**
284
+ * Returns a collection of plugins that adds table resizing functionality.
285
+ *
286
+ * @returns {Plugin[]}&mdash;The table resizing plugins.
287
+ */
288
+ function tableResizing(): Plugin[];
283
289
  /**
284
290
  * Sets the HTML to the `EditorView`.
285
291
  *
286
- * @param {EditorView} view - The `view` object of the Editor.
287
- * @param {string} html - The HTML content.
288
- * @param {Command} command - An optional parameter.
292
+ * @param {EditorView} view&mdash;The `view` object of the Editor.
293
+ * @param {string} html&mdash;The HTML content.
294
+ * @param {Command} command&mdash;An optional parameter.
289
295
  * Defines the type of the command that will be set to the `setHtml` metadata of the transaction.
290
296
  * Defaults to `SetContent`.
291
- * @param {ParseOptions} parseOptions - An optional parameter.
297
+ * @param {ParseOptions} parseOptions&mdash;An optional parameter.
292
298
  * Defines the options that will be used for parsing the HTML. Defaults to `{ preserveWhitespace: 'full' }`.
293
299
  */
294
300
  function setHtml(view: EditorView<any>, html: string, command?: EditorToolsSettings.Command, parseOptions?: ParseOptions<any>): void;
@@ -321,8 +327,8 @@ export declare namespace EditorUtils {
321
327
  * A function which returns the mapped `Shortcuts` object based on the passed settings.
322
328
  * Useful when the default Editor nodes or tool settings are changed and the `Shortcuts` object has to be regenerated.
323
329
  *
324
- * @params - An object which holds specific types of nodes and tool settings that are used by the default `Shortcuts` handlers.
325
- * @returns - An object which holds the shortcuts.
330
+ * @params&mdash;An object which holds specific types of nodes and tool settings that are used by the default `Shortcuts` handlers.
331
+ * @returns&mdash;An object which holds the shortcuts.
326
332
  */
327
333
  function getShortcuts(settings?: {
328
334
  types?: {
@@ -23,7 +23,7 @@ var EditorUtils;
23
23
  /**
24
24
  * Aligns the block elements in the selection.
25
25
  *
26
- * @returns {boolean} - If alignment is applied to any of the elements, returns `true`.
26
+ * @returns {boolean}&mdash;If alignment is applied to any of the elements, returns `true`.
27
27
  */
28
28
  function alignBlocks(view, actions, command) {
29
29
  return Boolean(kendo_editor_common_1.alignBlocks(actions, command)(view.state, view.dispatch));
@@ -32,7 +32,7 @@ var EditorUtils;
32
32
  /**
33
33
  * Wraps the selection in a `span` element with inline styles.
34
34
  *
35
- * @returns {boolean} - If a style is applied to any of the elements, returns `true`.
35
+ * @returns {boolean}&mdash;If a style is applied to any of the elements, returns `true`.
36
36
  */
37
37
  function applyInlineStyle(view, options, command) {
38
38
  return kendo_editor_common_1.applyInlineStyle(options, command)(view.state, view.dispatch);
@@ -41,7 +41,7 @@ var EditorUtils;
41
41
  /**
42
42
  * Applies the link mark.
43
43
  *
44
- * @returns {boolean} - If the link is applied, returns `true`.
44
+ * @returns {boolean}&mdash;If the link is applied, returns `true`.
45
45
  */
46
46
  function applyLink(view, options, command) {
47
47
  return kendo_editor_common_1.applyLink(options, command)(view.state, view.dispatch);
@@ -59,9 +59,9 @@ var EditorUtils;
59
59
  /**
60
60
  * Checks if a node can be inserted in the current selection.
61
61
  *
62
- * @param {EditorState} state - The `state` object of the Editor.
63
- * @param {NodeType} nodeType - The type of the node that will be inserted.
64
- * @returns {boolean} - The node of this type can be inserted in the current selection.
62
+ * @param {EditorState} state&mdash;The `state` object of the Editor.
63
+ * @param {NodeType} nodeType&mdash;The type of the node that will be inserted.
64
+ * @returns {boolean}&mdash;The node of this type can be inserted in the current selection.
65
65
  */
66
66
  function canInsert(state, nodeType) {
67
67
  return kendo_editor_common_1.canInsert(state, nodeType);
@@ -79,8 +79,8 @@ var EditorUtils;
79
79
  /**
80
80
  * Converts the MS Word lists into HTML lists.
81
81
  *
82
- * @param {string} html - The input HTML.
83
- * @returns {string} - The result HTML.
82
+ * @param {string} html&mdash;The input HTML.
83
+ * @returns {string}&mdash;The result HTML.
84
84
  */
85
85
  function convertMsLists(html) {
86
86
  return kendo_editor_common_1.convertMsLists(html);
@@ -89,10 +89,10 @@ var EditorUtils;
89
89
  /**
90
90
  * Creates an Editor document from HTML content.
91
91
  *
92
- * @param {Schema} schema - The `schema` object of the Editor.
93
- * @param {string} html - The HTML content.
94
- * @param {ParseOptions} parseOptions - The HTML parsing options. Defaults to `{ preserveWhitespace: 'full' }`.
95
- * @returns {Node} - The `document` object of the Editor.
92
+ * @param {Schema} schema&mdash;The `schema` object of the Editor.
93
+ * @param {string} html&mdash;The HTML content.
94
+ * @param {ParseOptions} parseOptions&mdash;The HTML parsing options. Defaults to `{ preserveWhitespace: 'full' }`.
95
+ * @returns {Node}&mdash;The `document` object of the Editor.
96
96
  */
97
97
  function createDocument(schema, html, parseOptions) {
98
98
  return kendo_editor_common_1.parseContent(kendo_editor_common_1.trimWhitespace(html), schema, parseOptions !== undefined ? parseOptions : { preserveWhitespace: 'full' });
@@ -101,10 +101,10 @@ var EditorUtils;
101
101
  /**
102
102
  * Creates a table.
103
103
  *
104
- * @param {object} tableTypes - An object which contains `table`, `table_row`, and `table_cell` node types.
105
- * @param {number} rows - The number of rows.
106
- * @param {number} columns - The number of columns.
107
- * @returns {Node<any>} - The generated table.
104
+ * @param {object} tableTypes&mdash;An object which contains `table`, `table_row`, and `table_cell` node types.
105
+ * @param {number} rows&mdash;The number of rows.
106
+ * @param {number} columns&mdash;The number of columns.
107
+ * @returns {Node<any>}&mdash;The generated table.
108
108
  *
109
109
  * @example
110
110
  * ```jsx-no-run
@@ -124,7 +124,7 @@ var EditorUtils;
124
124
  /**
125
125
  * Formats the paragraph and heading nodes in the selection.
126
126
  *
127
- * @returns {boolean} - If an element is formatted, returns `true`.
127
+ * @returns {boolean}&mdash;If an element is formatted, returns `true`.
128
128
  */
129
129
  function formatBlockElements(view, value, commandName) {
130
130
  return kendo_editor_common_1.formatBlockElements(value, commandName)(view.state, view.dispatch);
@@ -142,16 +142,16 @@ var EditorUtils;
142
142
  /**
143
143
  * Gets the HTML from the `EditorState` object.
144
144
  *
145
- * @param {EditorState} state - The `state` object of the Editor or an object containing editor's `doc` and `schema`
146
- * - { doc: value, schema: value.types.schema } where the `value` variable is the editor's value prop.
147
- * @returns {string} - The HTML content.
145
+ * @param {EditorState} state&mdash;The `state` object of the Editor or an object containing editor's `doc` and `schema`
146
+ *&mdash;{ doc: value, schema: value.types.schema } where the `value` variable is the editor's value prop.
147
+ * @returns {string}&mdash;The HTML content.
148
148
  */
149
149
  function getHtml(state) {
150
150
  return kendo_editor_common_1.getHtml(state);
151
151
  }
152
152
  EditorUtils.getHtml = getHtml;
153
153
  /**
154
- * @returns {string[]} - An array of matched styles that are found in the selection.
154
+ * @returns {string[]}&mdash;An array of matched styles that are found in the selection.
155
155
  */
156
156
  function getInlineStyles(state, style) {
157
157
  return kendo_editor_common_1.getInlineStyles(state, style);
@@ -187,7 +187,7 @@ var EditorUtils;
187
187
  /**
188
188
  * Indents the block elements in the selection.
189
189
  *
190
- * @returns {boolean} - If indentation is applied to any of the elements, returns `true`.
190
+ * @returns {boolean}&mdash;If indentation is applied to any of the elements, returns `true`.
191
191
  */
192
192
  function indentBlocks(view, actions, command, dir) {
193
193
  return Boolean(kendo_editor_common_1.indentBlocks(actions, command, dir)(view.state, view.dispatch));
@@ -196,8 +196,8 @@ var EditorUtils;
196
196
  /**
197
197
  * Adds new lines after block elements and hard breaks.
198
198
  *
199
- * @param {string} content - The HTML content.
200
- * @returns {string} - The indented HTML.
199
+ * @param {string} content&mdash;The HTML content.
200
+ * @returns {string}&mdash;The indented HTML.
201
201
  */
202
202
  function indentHtml(content) {
203
203
  return kendo_editor_common_1.indentHtml(content);
@@ -206,9 +206,9 @@ var EditorUtils;
206
206
  /**
207
207
  * Inserts a node in the selection.
208
208
  *
209
- * @param {EditorView} view - The `view` object of the Editor.
210
- * @param {Node} node - A `node` object of the Editor.
211
- * @param {boolean} scrollIntoView - An optional parameter.
209
+ * @param {EditorView} view&mdash;The `view` object of the Editor.
210
+ * @param {Node} node&mdash;A `node` object of the Editor.
211
+ * @param {boolean} scrollIntoView&mdash;An optional parameter.
212
212
  * Defines if the content element will be scrolled to the current selection.
213
213
  */
214
214
  function insertNode(view, node, scrollIntoView) {
@@ -236,8 +236,8 @@ var EditorUtils;
236
236
  /**
237
237
  * Removes the comments from the HTML.
238
238
  *
239
- * @param {string} html - The input HTML.
240
- * @returns {string} - The result HTML.
239
+ * @param {string} html&mdash;The input HTML.
240
+ * @returns {string}&mdash;The result HTML.
241
241
  *
242
242
  * @example
243
243
  * ```jsx-no-run
@@ -252,10 +252,10 @@ var EditorUtils;
252
252
  /**
253
253
  * Removes the specified tag from the HTML and keeps its child nodes.
254
254
  *
255
- * @param {string} html - The input HTML.
256
- * @param {string} tag - A tag or multiple tags separated by a vertical slash which will be removed.
255
+ * @param {string} html&mdash;The input HTML.
256
+ * @param {string} tag&mdash;A tag or multiple tags separated by a vertical slash which will be removed.
257
257
  * For example, `span` or `b|i|u|span`.
258
- * @returns {string} - The resulting HTML.
258
+ * @returns {string}&mdash;The resulting HTML.
259
259
  *
260
260
  * @example
261
261
  * ```jsx-no-run
@@ -270,9 +270,9 @@ var EditorUtils;
270
270
  /**
271
271
  * A function for sanitizing the content on paste ([see example]({% slug paste_editor %})).
272
272
  *
273
- * @param {string} html - The input HTML.
274
- * @param {PasteCleanupSettings} settings - The settings used for sanitizing the content.
275
- * @returns {string} - The resulting HTML.
273
+ * @param {string} html&mdash;The input HTML.
274
+ * @param {PasteCleanupSettings} settings&mdash;The settings used for sanitizing the content.
275
+ * @returns {string}&mdash;The resulting HTML.
276
276
  */
277
277
  function pasteCleanup(html, settings) {
278
278
  return kendo_editor_common_1.pasteCleanup(html, settings);
@@ -283,7 +283,7 @@ var EditorUtils;
283
283
  * The function will remove any class attribute which value starts with `Mso`.
284
284
  * For example `<p class="MsoNormal">pasted from MS Word</p>` will result in `<p>pasted from MS Word</p>`.
285
285
  *
286
- * @param {Attr} attr - The DOM class attribute that will be sanitized.
286
+ * @param {Attr} attr&mdash;The DOM class attribute that will be sanitized.
287
287
  */
288
288
  function sanitizeClassAttr(attr) {
289
289
  kendo_editor_common_1.sanitizeClassAttr(attr);
@@ -295,7 +295,7 @@ var EditorUtils;
295
295
  * For example `<p><span style='color:#7C7C7C;mso-themecolor:accent3;mso-themeshade:191;background:silver;'>content</span></p>`,
296
296
  * will result in `<p><span style="color: #7C7C7C; background: silver;">content</span></p>`.
297
297
  *
298
- * @param {Attr} attr - The DOM style attribute that will be sanitized.
298
+ * @param {Attr} attr&mdash;The DOM style attribute that will be sanitized.
299
299
  */
300
300
  function sanitizeStyleAttr(attr) {
301
301
  kendo_editor_common_1.sanitizeStyleAttr(attr);
@@ -304,7 +304,7 @@ var EditorUtils;
304
304
  /**
305
305
  * A function that will remove a DOM attribute from the pasted content ([see example]({% slug paste_editor %})).
306
306
  *
307
- * @param {Attr} attr - The DOM attribute that will be removed.
307
+ * @param {Attr} attr&mdash;The DOM attribute that will be removed.
308
308
  */
309
309
  function removeAttribute(attr) {
310
310
  kendo_editor_common_1.removeAttribute(attr);
@@ -313,8 +313,8 @@ var EditorUtils;
313
313
  /**
314
314
  * Removes the invalid HTML.
315
315
  *
316
- * @param {string} html - The HTML which will be sanitized.
317
- * @returns {string} - The sanitized HTML.
316
+ * @param {string} html&mdash;The HTML which will be sanitized.
317
+ * @returns {string}&mdash;The sanitized HTML.
318
318
  *
319
319
  * @example
320
320
  * ```jsx-no-run
@@ -330,9 +330,9 @@ var EditorUtils;
330
330
  * If the input `html` contains images with 'src' pointing to local file system (it happens when pasting images and text from MS Word),
331
331
  * the function will extract the images sources from the RTF in base64 format and replace them in the input `html`.
332
332
  *
333
- * @param html - The input HTML (pasted HTML).
334
- * @param clipboardData - The paste event clipboardData object (event.clipboardData).
335
- * @returns - The html with the replaced images sources.
333
+ * @param html&mdash;The input HTML (pasted HTML).
334
+ * @param clipboardData&mdash;The paste event clipboardData object (event.clipboardData).
335
+ * @returns&mdash;The html with the replaced images sources.
336
336
  */
337
337
  function replaceImageSourcesFromRtf(html, clipboardData) {
338
338
  return kendo_editor_common_1.replaceImageSourcesFromRtf(html, clipboardData);
@@ -341,8 +341,8 @@ var EditorUtils;
341
341
  /**
342
342
  * Creates a plugin which highlights the matches of Find and Replace dialog.
343
343
  *
344
- * @param {PluginKey} key - The key of the plugin (Optional).
345
- * @returns {Plugin} - The text highlight plugin.
344
+ * @param {PluginKey} key&mdash;The key of the plugin (Optional).
345
+ * @returns {Plugin}&mdash;The text highlight plugin.
346
346
  */
347
347
  function textHighlight(key) {
348
348
  return kendo_editor_common_1.textHighlight(key);
@@ -351,22 +351,31 @@ var EditorUtils;
351
351
  /**
352
352
  * Creates a plugin which adds image resizing functionality.
353
353
  *
354
- * @param {ImageResizeOptions} options - The resizing option (Optional).
355
- * @returns {Plugin} - The image resizing plugin.
354
+ * @param {ImageResizeOptions} options&mdash;The resizing option (Optional).
355
+ * @returns {Plugin}&mdash;The image resizing plugin.
356
356
  */
357
357
  function imageResizing(options) {
358
358
  return kendo_editor_common_1.imageResizing(options);
359
359
  }
360
360
  EditorUtils.imageResizing = imageResizing;
361
+ /**
362
+ * Returns a collection of plugins that adds table resizing functionality.
363
+ *
364
+ * @returns {Plugin[]}&mdash;The table resizing plugins.
365
+ */
366
+ function tableResizing() {
367
+ return kendo_editor_common_1.tableResizing();
368
+ }
369
+ EditorUtils.tableResizing = tableResizing;
361
370
  /**
362
371
  * Sets the HTML to the `EditorView`.
363
372
  *
364
- * @param {EditorView} view - The `view` object of the Editor.
365
- * @param {string} html - The HTML content.
366
- * @param {Command} command - An optional parameter.
373
+ * @param {EditorView} view&mdash;The `view` object of the Editor.
374
+ * @param {string} html&mdash;The HTML content.
375
+ * @param {Command} command&mdash;An optional parameter.
367
376
  * Defines the type of the command that will be set to the `setHtml` metadata of the transaction.
368
377
  * Defaults to `SetContent`.
369
- * @param {ParseOptions} parseOptions - An optional parameter.
378
+ * @param {ParseOptions} parseOptions&mdash;An optional parameter.
370
379
  * Defines the options that will be used for parsing the HTML. Defaults to `{ preserveWhitespace: 'full' }`.
371
380
  */
372
381
  function setHtml(view, html, command, parseOptions) {
@@ -397,8 +406,8 @@ var EditorUtils;
397
406
  * A function which returns the mapped `Shortcuts` object based on the passed settings.
398
407
  * Useful when the default Editor nodes or tool settings are changed and the `Shortcuts` object has to be regenerated.
399
408
  *
400
- * @params - An object which holds specific types of nodes and tool settings that are used by the default `Shortcuts` handlers.
401
- * @returns - An object which holds the shortcuts.
409
+ * @params&mdash;An object which holds specific types of nodes and tool settings that are used by the default `Shortcuts` handlers.
410
+ * @returns&mdash;An object which holds the shortcuts.
402
411
  */
403
412
  // tslint:enable:max-line-length
404
413
  function getShortcuts(settings) {