@progress/kendo-react-editor 7.2.4-develop.3 → 7.3.0-develop.1
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.
- package/Editor.js +8 -0
- package/Editor.mjs +327 -0
- package/config/defaultStyles.js +229 -0
- package/config/defaultStyles.mjs +235 -0
- package/config/shortcuts.js +8 -0
- package/config/shortcuts.mjs +34 -0
- package/config/toolsSettings.js +8 -0
- package/config/toolsSettings.mjs +549 -0
- package/dialogs/FindReplace.js +8 -0
- package/dialogs/FindReplace.mjs +214 -0
- package/dialogs/index.js +8 -0
- package/dialogs/index.mjs +30 -0
- package/dialogs/insertImage.js +8 -0
- package/dialogs/insertImage.mjs +117 -0
- package/dialogs/insertLink.js +8 -0
- package/dialogs/insertLink.mjs +96 -0
- package/dialogs/viewHtml.js +8 -0
- package/dialogs/viewHtml.mjs +70 -0
- package/dist/cdn/js/kendo-react-editor.js +8 -226
- package/index.d.mts +2943 -5
- package/index.d.ts +2941 -178
- package/index.js +8 -226
- package/index.mjs +165 -4118
- package/messages/index.js +8 -0
- package/messages/index.mjs +345 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +11 -11
- package/tools/align.js +8 -0
- package/tools/align.mjs +38 -0
- package/tools/applyColor.js +8 -0
- package/tools/applyColor.mjs +34 -0
- package/tools/cleanFormatting.js +8 -0
- package/tools/cleanFormatting.mjs +41 -0
- package/tools/findReplace.js +8 -0
- package/tools/findReplace.mjs +53 -0
- package/tools/fontStyle.js +8 -0
- package/tools/fontStyle.mjs +61 -0
- package/tools/formatBlock.js +8 -0
- package/tools/formatBlock.mjs +60 -0
- package/tools/history.js +8 -0
- package/tools/history.mjs +17 -0
- package/tools/indent.js +8 -0
- package/tools/indent.mjs +43 -0
- package/tools/index.js +8 -0
- package/tools/index.mjs +278 -0
- package/tools/inlineFormat.js +8 -0
- package/tools/inlineFormat.mjs +43 -0
- package/tools/insertImage.js +8 -0
- package/tools/insertImage.mjs +58 -0
- package/tools/insertLink.js +8 -0
- package/tools/insertLink.mjs +61 -0
- package/tools/insertTable/popup.js +8 -0
- package/tools/insertTable/popup.mjs +94 -0
- package/tools/insertTable/popupGrid.js +8 -0
- package/tools/insertTable/popupGrid.mjs +58 -0
- package/tools/insertTable/tool.js +8 -0
- package/tools/insertTable/tool.mjs +73 -0
- package/tools/lists-styled.js +8 -0
- package/tools/lists-styled.mjs +61 -0
- package/tools/lists.js +8 -0
- package/tools/lists.mjs +47 -0
- package/tools/outdent.js +8 -0
- package/tools/outdent.mjs +43 -0
- package/tools/pdf.js +8 -0
- package/tools/pdf.mjs +36 -0
- package/tools/print.js +8 -0
- package/tools/print.mjs +38 -0
- package/tools/proseMirrorTool.js +8 -0
- package/tools/proseMirrorTool.mjs +37 -0
- package/tools/selectAll.js +8 -0
- package/tools/selectAll.mjs +36 -0
- package/tools/table-wizard/cellPropsUtils.js +8 -0
- package/tools/table-wizard/cellPropsUtils.mjs +124 -0
- package/tools/table-wizard/tableCellProperties.js +8 -0
- package/tools/table-wizard/tableCellProperties.mjs +238 -0
- package/tools/table-wizard/tableProperties.js +8 -0
- package/tools/table-wizard/tableProperties.mjs +292 -0
- package/tools/table-wizard/tablePropsUtils.js +8 -0
- package/tools/table-wizard/tablePropsUtils.mjs +288 -0
- package/tools/table-wizard/utils.js +8 -0
- package/tools/table-wizard/utils.mjs +91 -0
- package/tools/tableEdit.js +8 -0
- package/tools/tableEdit.mjs +36 -0
- package/tools/unlink.js +8 -0
- package/tools/unlink.mjs +41 -0
- package/tools/utils.js +8 -0
- package/tools/utils.mjs +51 -0
- package/tools/viewHtml.js +8 -0
- package/tools/viewHtml.mjs +57 -0
- package/utils/browser-detection.js +8 -0
- package/utils/browser-detection.mjs +12 -0
- package/utils/controlled-value.js +8 -0
- package/utils/controlled-value.mjs +19 -0
- package/utils/index.js +8 -0
- package/utils/index.mjs +162 -0
- package/utils/props-key.js +8 -0
- package/utils/props-key.mjs +13 -0
- package/Editor.d.ts +0 -122
- package/EditorProps.d.ts +0 -200
- package/config/defaultStyles.d.ts +0 -16
- package/config/pasteSettings.d.ts +0 -10
- package/config/schema.d.ts +0 -5
- package/config/shortcuts.d.ts +0 -28
- package/config/toolsSettings.d.ts +0 -493
- package/dialogs/EditorDialogProps.d.ts +0 -30
- package/dialogs/FindReplace.d.ts +0 -75
- package/dialogs/index.d.ts +0 -53
- package/dialogs/insertImage.d.ts +0 -32
- package/dialogs/insertLink.d.ts +0 -30
- package/dialogs/viewHtml.d.ts +0 -29
- package/messages/index.d.ts +0 -338
- package/package-metadata.d.ts +0 -9
- package/tools/ToolProps.d.ts +0 -41
- package/tools/align.d.ts +0 -11
- package/tools/applyColor.d.ts +0 -16
- package/tools/cleanFormatting.d.ts +0 -20
- package/tools/findReplace.d.ts +0 -33
- package/tools/fontStyle.d.ts +0 -32
- package/tools/formatBlock.d.ts +0 -22
- package/tools/history.d.ts +0 -30
- package/tools/indent.d.ts +0 -21
- package/tools/index.d.ts +0 -718
- package/tools/inlineFormat.d.ts +0 -51
- package/tools/insertImage.d.ts +0 -17
- package/tools/insertLink.d.ts +0 -28
- package/tools/insertTable/index.d.ts +0 -7
- package/tools/insertTable/popup.d.ts +0 -97
- package/tools/insertTable/popupGrid.d.ts +0 -35
- package/tools/insertTable/tool.d.ts +0 -28
- package/tools/lists-styled.d.ts +0 -8
- package/tools/lists.d.ts +0 -31
- package/tools/outdent.d.ts +0 -21
- package/tools/pdf.d.ts +0 -29
- package/tools/print.d.ts +0 -20
- package/tools/proseMirrorTool.d.ts +0 -16
- package/tools/selectAll.d.ts +0 -20
- package/tools/table-wizard/cellPropsUtils.d.ts +0 -40
- package/tools/table-wizard/tableCellProperties.d.ts +0 -24
- package/tools/table-wizard/tableProperties.d.ts +0 -15
- package/tools/table-wizard/tablePropsUtils.d.ts +0 -56
- package/tools/table-wizard/utils.d.ts +0 -43
- package/tools/tableEdit.d.ts +0 -102
- package/tools/unlink.d.ts +0 -21
- package/tools/utils.d.ts +0 -54
- package/tools/viewHtml.d.ts +0 -28
- package/utils/browser-detection.d.ts +0 -8
- package/utils/controlled-value.d.ts +0 -9
- package/utils/index.d.ts +0 -367
- package/utils/props-key.d.ts +0 -9
package/Editor.d.ts
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import { EditorView, Node } from '@progress/kendo-editor-common';
|
|
8
|
-
import { EditorProps } from './EditorProps';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
interface EditorStateInterface {
|
|
13
|
-
view?: EditorView;
|
|
14
|
-
linkDialog?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Represents the [KendoReact Editor component]({% slug overview_editor %}).
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```jsx
|
|
21
|
-
* class App extends React.Component {
|
|
22
|
-
* render() {
|
|
23
|
-
* return (
|
|
24
|
-
* <Editor
|
|
25
|
-
* defaultContent="<p>Hello World</p>"
|
|
26
|
-
* tools={[
|
|
27
|
-
* [ EditorTools.Bold, EditorTools.Italic ]
|
|
28
|
-
* ]}
|
|
29
|
-
* />
|
|
30
|
-
* );
|
|
31
|
-
* }
|
|
32
|
-
* }
|
|
33
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export declare class Editor extends React.Component<EditorProps, EditorStateInterface> {
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
static propTypes: {
|
|
41
|
-
defaultContent: PropTypes.Requireable<string>;
|
|
42
|
-
value: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
|
|
43
|
-
defaultEditMode: PropTypes.Requireable<string>;
|
|
44
|
-
contentStyle: PropTypes.Requireable<object>;
|
|
45
|
-
dir: PropTypes.Requireable<string>;
|
|
46
|
-
className: PropTypes.Requireable<string>;
|
|
47
|
-
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
48
|
-
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
49
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
50
|
-
style: PropTypes.Requireable<object>;
|
|
51
|
-
tools: PropTypes.Requireable<any[]>;
|
|
52
|
-
keyboardNavigation: PropTypes.Requireable<boolean>;
|
|
53
|
-
resizable: PropTypes.Requireable<boolean>;
|
|
54
|
-
preserveWhitespace: PropTypes.Requireable<string | boolean>;
|
|
55
|
-
onMount: PropTypes.Requireable<(...args: any[]) => any>;
|
|
56
|
-
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
|
-
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
58
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
59
|
-
onPasteHtml: PropTypes.Requireable<(...args: any[]) => any>;
|
|
60
|
-
onExecute: PropTypes.Requireable<(...args: any[]) => any>;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* @hidden
|
|
64
|
-
*/
|
|
65
|
-
readonly state: EditorStateInterface;
|
|
66
|
-
/**
|
|
67
|
-
* The value of the Editor.
|
|
68
|
-
*/
|
|
69
|
-
get value(): Node | string;
|
|
70
|
-
/**
|
|
71
|
-
* Returns the DOM element of the Editor.
|
|
72
|
-
*/
|
|
73
|
-
get element(): HTMLElement | null;
|
|
74
|
-
/**
|
|
75
|
-
* Returns the content-editable DOM element of the Editor.
|
|
76
|
-
*/
|
|
77
|
-
get contentElement(): HTMLDivElement | null;
|
|
78
|
-
/**
|
|
79
|
-
* Returns the `view` object of the Editor.
|
|
80
|
-
*/
|
|
81
|
-
get view(): EditorView | undefined;
|
|
82
|
-
private _element;
|
|
83
|
-
private _view?;
|
|
84
|
-
private _contentElement;
|
|
85
|
-
private iframe;
|
|
86
|
-
private trOnChange;
|
|
87
|
-
private htmlOnChange;
|
|
88
|
-
private pasteEvent?;
|
|
89
|
-
private showLicenseWatermark;
|
|
90
|
-
constructor(props: EditorProps);
|
|
91
|
-
/**
|
|
92
|
-
* @hidden
|
|
93
|
-
*/
|
|
94
|
-
componentDidMount(): void;
|
|
95
|
-
/**
|
|
96
|
-
* @hidden
|
|
97
|
-
*/
|
|
98
|
-
componentDidUpdate(prevProps: EditorProps): void;
|
|
99
|
-
/**
|
|
100
|
-
* @hidden
|
|
101
|
-
*/
|
|
102
|
-
componentWillUnmount(): void;
|
|
103
|
-
/**
|
|
104
|
-
* @hidden
|
|
105
|
-
*/
|
|
106
|
-
focus: () => void;
|
|
107
|
-
/**
|
|
108
|
-
* @hidden
|
|
109
|
-
*/
|
|
110
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
111
|
-
private renderDialog;
|
|
112
|
-
private renderTool;
|
|
113
|
-
private updateTools;
|
|
114
|
-
private initialize;
|
|
115
|
-
private filterTransaction;
|
|
116
|
-
private onPasteHtml;
|
|
117
|
-
private dispatchTransaction;
|
|
118
|
-
private onFocus;
|
|
119
|
-
private onBlur;
|
|
120
|
-
private onPaste;
|
|
121
|
-
}
|
|
122
|
-
export {};
|
package/EditorProps.d.ts
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { EditorState, Plugin, Transaction, EditorView, Schema, Node } from '@progress/kendo-editor-common';
|
|
6
|
-
import { EditorUtils } from './utils';
|
|
7
|
-
import { Editor } from './Editor';
|
|
8
|
-
interface EditorEvent {
|
|
9
|
-
/**
|
|
10
|
-
* An event target.
|
|
11
|
-
*/
|
|
12
|
-
target: Editor;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Represents the object of the `onChange` Editor event.
|
|
16
|
-
*/
|
|
17
|
-
export interface EditorChangeEvent extends EditorEvent {
|
|
18
|
-
/**
|
|
19
|
-
* Represents the [Editor document](https://prosemirror.net/docs/guide/#doc).
|
|
20
|
-
*/
|
|
21
|
-
value: Node;
|
|
22
|
-
/**
|
|
23
|
-
* A getter of the Editor HTML content.
|
|
24
|
-
* Once called, it will convert the Editor document into HTML string.
|
|
25
|
-
* Note that, since onChange event is triggered on every key while typing,
|
|
26
|
-
* this conversion may not be suitable if the Editor is dealing with large amount of content.
|
|
27
|
-
*/
|
|
28
|
-
html: string;
|
|
29
|
-
/**
|
|
30
|
-
* The Editor Schema object.
|
|
31
|
-
*/
|
|
32
|
-
schema: Schema;
|
|
33
|
-
/**
|
|
34
|
-
* The Transaction which causes the change.
|
|
35
|
-
*/
|
|
36
|
-
transaction: Transaction;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Represents the object of the `onMount` Editor event.
|
|
40
|
-
*/
|
|
41
|
-
export interface EditorMountEvent extends EditorEvent {
|
|
42
|
-
/**
|
|
43
|
-
* The content-editable DOM element of the Editor.
|
|
44
|
-
*/
|
|
45
|
-
dom: HTMLDivElement;
|
|
46
|
-
/**
|
|
47
|
-
* The default plugins collection of the Editor.
|
|
48
|
-
*/
|
|
49
|
-
plugins: Array<Plugin>;
|
|
50
|
-
/**
|
|
51
|
-
* The default key bindings of the Editor.
|
|
52
|
-
*/
|
|
53
|
-
shortcuts: EditorUtils.Shortcuts;
|
|
54
|
-
/**
|
|
55
|
-
* The default [viewProps](https://prosemirror.net/docs/ref/#view.DirectEditorProps) object of the Editor.
|
|
56
|
-
*/
|
|
57
|
-
viewProps: {
|
|
58
|
-
state: EditorState;
|
|
59
|
-
[key: string]: any;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Represents the object of the `onPaste` Editor event.
|
|
64
|
-
*/
|
|
65
|
-
export interface EditorPasteEvent extends EditorEvent {
|
|
66
|
-
/**
|
|
67
|
-
* The HTML that will be pasted in the Editor.
|
|
68
|
-
*/
|
|
69
|
-
pastedHtml: string;
|
|
70
|
-
/**
|
|
71
|
-
* The native paste event.
|
|
72
|
-
*/
|
|
73
|
-
nativeEvent: ClipboardEvent;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Represents the object of the `onExecute` Editor event.
|
|
77
|
-
*/
|
|
78
|
-
export interface EditorExecuteEvent extends EditorEvent {
|
|
79
|
-
/**
|
|
80
|
-
* The transaction that will be executed.
|
|
81
|
-
*/
|
|
82
|
-
transaction: Transaction;
|
|
83
|
-
/**
|
|
84
|
-
* The state of the Editor.
|
|
85
|
-
*/
|
|
86
|
-
state: EditorState;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Represents the object of the `onFocus` Editor event.
|
|
90
|
-
*/
|
|
91
|
-
export interface EditorFocusEvent extends EditorEvent {
|
|
92
|
-
/**
|
|
93
|
-
* The native focus event.
|
|
94
|
-
*/
|
|
95
|
-
nativeEvent: FocusEvent;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Represents the object of the `onBlur` Editor event.
|
|
99
|
-
*/
|
|
100
|
-
export interface EditorBlurEvent extends EditorEvent {
|
|
101
|
-
/**
|
|
102
|
-
* The native blur event.
|
|
103
|
-
*/
|
|
104
|
-
nativeEvent: FocusEvent;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Represents the props of the [KendoReact Editor component]({% slug overview_editor %}).
|
|
108
|
-
*/
|
|
109
|
-
export interface EditorProps {
|
|
110
|
-
/**
|
|
111
|
-
* Sets the default HTML content of the Editor.
|
|
112
|
-
*/
|
|
113
|
-
defaultContent?: string;
|
|
114
|
-
/**
|
|
115
|
-
* Sets the initial edit mode of the Editor. Defaults to `iframe`.
|
|
116
|
-
*/
|
|
117
|
-
defaultEditMode?: 'iframe' | 'div';
|
|
118
|
-
/**
|
|
119
|
-
* Sets styles to the content element wrapper of the Editor.
|
|
120
|
-
*/
|
|
121
|
-
contentStyle?: React.CSSProperties;
|
|
122
|
-
/**
|
|
123
|
-
* Represents the `dir` HTML attribute.
|
|
124
|
-
*/
|
|
125
|
-
dir?: string;
|
|
126
|
-
/**
|
|
127
|
-
* Sets additional classes to the Editor.
|
|
128
|
-
*/
|
|
129
|
-
className?: string;
|
|
130
|
-
/**
|
|
131
|
-
* Sets styles to the Editor.
|
|
132
|
-
*/
|
|
133
|
-
style?: React.CSSProperties;
|
|
134
|
-
/**
|
|
135
|
-
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
136
|
-
*/
|
|
137
|
-
ariaDescribedBy?: string;
|
|
138
|
-
/**
|
|
139
|
-
* Identifies the element(s) which will label the component.
|
|
140
|
-
*/
|
|
141
|
-
ariaLabelledBy?: string;
|
|
142
|
-
/**
|
|
143
|
-
* The accessible label of the component.
|
|
144
|
-
*/
|
|
145
|
-
ariaLabel?: string;
|
|
146
|
-
/**
|
|
147
|
-
* Specifies if the Editor will be resizable.
|
|
148
|
-
*/
|
|
149
|
-
resizable?: boolean;
|
|
150
|
-
/**
|
|
151
|
-
* Sets the tools of the Editor. By default, the Editor renders no tools.
|
|
152
|
-
*/
|
|
153
|
-
tools?: Array<any>;
|
|
154
|
-
/**
|
|
155
|
-
* Fires each time the Editor is about to mount.
|
|
156
|
-
* Useful for configuring the `EditorView` object.
|
|
157
|
-
* To initialize `EditorView`, use the properties of the `event` object.
|
|
158
|
-
*/
|
|
159
|
-
onMount?: (event: EditorMountEvent) => EditorView | void;
|
|
160
|
-
/**
|
|
161
|
-
* Fires each time the Editor is about to insert pasted content.
|
|
162
|
-
* Useful for modifying pasted content.
|
|
163
|
-
*/
|
|
164
|
-
onPasteHtml?: (event: EditorPasteEvent) => string | void;
|
|
165
|
-
/**
|
|
166
|
-
* Fires each time the Editor is about to apply a transaction.
|
|
167
|
-
* To prevent the transaction, return `false`.
|
|
168
|
-
*/
|
|
169
|
-
onExecute?: (event: EditorExecuteEvent) => boolean | void;
|
|
170
|
-
/**
|
|
171
|
-
* Fires when the Editor's content element has received focus.
|
|
172
|
-
*/
|
|
173
|
-
onFocus?: (event: EditorFocusEvent) => void;
|
|
174
|
-
/**
|
|
175
|
-
* Fires when the Editor's content element has lost focus.
|
|
176
|
-
*/
|
|
177
|
-
onBlur?: (event: EditorBlurEvent) => void;
|
|
178
|
-
/**
|
|
179
|
-
* Fires each time the value of the Editor is about to change.
|
|
180
|
-
*/
|
|
181
|
-
onChange?: (event: EditorChangeEvent) => void;
|
|
182
|
-
/**
|
|
183
|
-
* The value of the Editor.
|
|
184
|
-
*/
|
|
185
|
-
value?: Node | string;
|
|
186
|
-
/**
|
|
187
|
-
* If set to `false`, it will turn off the built-in keyboard navigation of the Editor's Toolbar.
|
|
188
|
-
*/
|
|
189
|
-
keyboardNavigation?: boolean;
|
|
190
|
-
/**
|
|
191
|
-
* Defines the options that will be used for parsing the HTML.
|
|
192
|
-
* If `false` is set, the whitespace is collapsed as per HTML's rules.
|
|
193
|
-
* Pass `true` to preserve whitespace, but normalize newlines to spaces.
|
|
194
|
-
* `full` will preserve whitespace entirely.
|
|
195
|
-
*
|
|
196
|
-
* Defaults to `full`.
|
|
197
|
-
*/
|
|
198
|
-
preserveWhitespace?: boolean | 'full';
|
|
199
|
-
}
|
|
200
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
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";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
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";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export declare const rtlStyles = "body { direction: rtl }";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PasteCleanupSettings as PasteSettings } from '@progress/kendo-editor-common';
|
|
6
|
-
/**
|
|
7
|
-
* The settings passed to `pasteCleanup` function ([see example]({% slug paste_editor %})).
|
|
8
|
-
*/
|
|
9
|
-
export interface PasteCleanupSettings extends PasteSettings {
|
|
10
|
-
}
|
package/config/schema.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export { marks, nodes } from '@progress/kendo-editor-common';
|
package/config/shortcuts.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { EditorState, Transaction, EditorView } from '@progress/kendo-editor-common';
|
|
6
|
-
import { EditorToolsSettings } from './toolsSettings';
|
|
7
|
-
declare const bold: EditorToolsSettings.InlineFormatSettings, underline: EditorToolsSettings.InlineFormatSettings, italic: EditorToolsSettings.InlineFormatSettings;
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface Shortcuts {
|
|
12
|
-
[key: string]: (state: EditorState, dispatch: (tr: Transaction) => void, view: EditorView) => boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare const getShortcuts: (settings?: {
|
|
18
|
-
types?: {
|
|
19
|
-
listItem: string;
|
|
20
|
-
hardBreak: string;
|
|
21
|
-
};
|
|
22
|
-
toolsSettings?: {
|
|
23
|
-
bold?: EditorToolsSettings.InlineFormatOptions;
|
|
24
|
-
italic?: EditorToolsSettings.InlineFormatOptions;
|
|
25
|
-
underline?: EditorToolsSettings.InlineFormatOptions;
|
|
26
|
-
};
|
|
27
|
-
}) => Shortcuts;
|
|
28
|
-
export {};
|