@progress/kendo-vue-editor 3.5.0 → 3.5.1-dev.202208100944
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/README.md +1 -1
- package/dist/cdn/js/kendo-vue-editor.js +1 -1
- package/dist/es/Editor.d.ts +41 -41
- package/dist/es/Editor.js +7 -11
- package/dist/es/EditorProps.js +1 -0
- package/dist/es/config/pasteSettings.js +1 -0
- package/dist/es/config/toolsSettings.js +13 -11
- package/dist/es/dialogs/EditorDialogProps.js +1 -0
- package/dist/es/dialogs/FindReplace.js +4 -4
- package/dist/es/main.d.ts +0 -1
- package/dist/es/main.js +115 -28
- package/dist/es/messages/index.d.ts +0 -313
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/ToolProps.d.ts +2 -1
- package/dist/es/tools/ToolProps.js +1 -0
- package/dist/es/tools/fontStyle.js +7 -11
- package/dist/es/tools/formatBlock.js +7 -11
- package/dist/es/tools/insertTable/popupGrid.js +1 -1
- package/dist/es/tools/main.js +1 -0
- package/dist/esm/Editor.d.ts +283 -0
- package/dist/esm/Editor.js +813 -0
- package/dist/esm/EditorProps.d.ts +182 -0
- package/dist/esm/EditorProps.js +1 -0
- package/dist/esm/additionalTypes.ts +21 -0
- package/dist/esm/config/defaultStyles.d.ts +12 -0
- package/dist/esm/config/defaultStyles.js +12 -0
- package/dist/esm/config/pasteSettings.d.ts +6 -0
- package/dist/esm/config/pasteSettings.js +1 -0
- package/dist/esm/config/schema.d.ts +8 -0
- package/dist/esm/config/schema.js +51 -0
- package/dist/esm/config/shortcuts.d.ts +22 -0
- package/dist/esm/config/shortcuts.js +70 -0
- package/dist/esm/config/toolsSettings.d.ts +485 -0
- package/dist/esm/config/toolsSettings.js +525 -0
- package/dist/esm/dialogs/EditorDialogProps.d.ts +23 -0
- package/dist/esm/dialogs/EditorDialogProps.js +1 -0
- package/dist/esm/dialogs/FindReplace.d.ts +70 -0
- package/dist/esm/dialogs/FindReplace.js +880 -0
- package/dist/esm/dialogs/insertImage.d.ts +54 -0
- package/dist/esm/dialogs/insertImage.js +299 -0
- package/dist/esm/dialogs/insertLink.d.ts +52 -0
- package/dist/esm/dialogs/insertLink.js +313 -0
- package/dist/esm/dialogs/main.d.ts +1 -0
- package/dist/esm/dialogs/main.js +42 -0
- package/dist/esm/dialogs/viewHtml.d.ts +51 -0
- package/dist/esm/dialogs/viewHtml.js +149 -0
- package/dist/esm/main.d.ts +184 -0
- package/dist/esm/main.js +216 -0
- package/dist/esm/messages/index.d.ts +166 -0
- package/dist/esm/messages/index.js +485 -0
- package/dist/esm/package-metadata.d.ts +5 -0
- package/dist/esm/package-metadata.js +11 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/tools/ToolProps.d.ts +35 -0
- package/dist/esm/tools/ToolProps.js +1 -0
- package/dist/esm/tools/align.d.ts +42 -0
- package/dist/esm/tools/align.js +124 -0
- package/dist/esm/tools/applyColor.d.ts +45 -0
- package/dist/esm/tools/applyColor.js +107 -0
- package/dist/esm/tools/cleanFormatting.d.ts +49 -0
- package/dist/esm/tools/cleanFormatting.js +122 -0
- package/dist/esm/tools/findReplace.d.ts +43 -0
- package/dist/esm/tools/findReplace.js +127 -0
- package/dist/esm/tools/fontStyle.d.ts +55 -0
- package/dist/esm/tools/fontStyle.js +166 -0
- package/dist/esm/tools/formatBlock.d.ts +45 -0
- package/dist/esm/tools/formatBlock.js +161 -0
- package/dist/esm/tools/history.d.ts +18 -0
- package/dist/esm/tools/history.js +5 -0
- package/dist/esm/tools/indent.d.ts +44 -0
- package/dist/esm/tools/indent.js +135 -0
- package/dist/esm/tools/inlineFormat.d.ts +74 -0
- package/dist/esm/tools/inlineFormat.js +133 -0
- package/dist/esm/tools/insertImage.d.ts +46 -0
- package/dist/esm/tools/insertImage.js +138 -0
- package/dist/esm/tools/insertLink.d.ts +46 -0
- package/dist/esm/tools/insertLink.js +138 -0
- package/dist/esm/tools/insertTable/index.d.ts +1 -0
- package/dist/esm/tools/insertTable/index.js +6 -0
- package/dist/esm/tools/insertTable/popup.d.ts +80 -0
- package/dist/esm/tools/insertTable/popup.js +176 -0
- package/dist/esm/tools/insertTable/popupGrid.d.ts +51 -0
- package/dist/esm/tools/insertTable/popupGrid.js +139 -0
- package/dist/esm/tools/insertTable/tool.d.ts +53 -0
- package/dist/esm/tools/insertTable/tool.js +173 -0
- package/dist/esm/tools/lists.d.ts +48 -0
- package/dist/esm/tools/lists.js +140 -0
- package/dist/esm/tools/main.d.ts +95 -0
- package/dist/esm/tools/main.js +1 -0
- package/dist/esm/tools/outdent.d.ts +44 -0
- package/dist/esm/tools/outdent.js +137 -0
- package/dist/esm/tools/pdf.d.ts +58 -0
- package/dist/esm/tools/pdf.js +113 -0
- package/dist/esm/tools/print.d.ts +49 -0
- package/dist/esm/tools/print.js +117 -0
- package/dist/esm/tools/proseMirrorTool.d.ts +48 -0
- package/dist/esm/tools/proseMirrorTool.js +118 -0
- package/dist/esm/tools/selectAll.d.ts +49 -0
- package/dist/esm/tools/selectAll.js +110 -0
- package/dist/esm/tools/tableEdit.d.ts +51 -0
- package/dist/esm/tools/tableEdit.js +43 -0
- package/dist/esm/tools/unlink.d.ts +47 -0
- package/dist/esm/tools/unlink.js +118 -0
- package/dist/esm/tools/utils.d.ts +18 -0
- package/dist/esm/tools/utils.js +36 -0
- package/dist/esm/tools/viewHtml.d.ts +54 -0
- package/dist/esm/tools/viewHtml.js +133 -0
- package/dist/esm/utils/browser-detection.d.ts +4 -0
- package/dist/esm/utils/browser-detection.js +5 -0
- package/dist/esm/utils/controlled-value.d.ts +5 -0
- package/dist/esm/utils/controlled-value.js +31 -0
- package/dist/esm/utils/index.d.ts +358 -0
- package/dist/esm/utils/index.js +422 -0
- package/dist/esm/utils/props-key.d.ts +5 -0
- package/dist/esm/utils/props-key.js +5 -0
- package/dist/npm/Editor.d.ts +41 -41
- package/dist/npm/Editor.js +18 -22
- package/dist/npm/config/schema.js +1 -1
- package/dist/npm/config/shortcuts.js +11 -9
- package/dist/npm/config/toolsSettings.js +13 -11
- package/dist/npm/dialogs/FindReplace.js +11 -11
- package/dist/npm/dialogs/insertImage.js +12 -12
- package/dist/npm/dialogs/insertLink.js +9 -9
- package/dist/npm/dialogs/viewHtml.js +7 -7
- package/dist/npm/main.d.ts +0 -1
- package/dist/npm/main.js +116 -29
- package/dist/npm/messages/index.d.ts +0 -313
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/ToolProps.d.ts +2 -1
- package/dist/npm/tools/align.js +4 -4
- package/dist/npm/tools/applyColor.js +2 -2
- package/dist/npm/tools/cleanFormatting.js +2 -2
- package/dist/npm/tools/findReplace.js +1 -1
- package/dist/npm/tools/fontStyle.js +10 -14
- package/dist/npm/tools/formatBlock.js +10 -14
- package/dist/npm/tools/indent.js +11 -11
- package/dist/npm/tools/inlineFormat.js +3 -3
- package/dist/npm/tools/insertImage.js +2 -2
- package/dist/npm/tools/insertLink.js +2 -2
- package/dist/npm/tools/insertTable/popupGrid.js +2 -2
- package/dist/npm/tools/insertTable/tool.js +5 -5
- package/dist/npm/tools/lists.js +4 -4
- package/dist/npm/tools/outdent.js +7 -7
- package/dist/npm/tools/pdf.js +2 -2
- package/dist/npm/tools/print.js +1 -1
- package/dist/npm/tools/proseMirrorTool.js +1 -1
- package/dist/npm/tools/selectAll.js +2 -2
- package/dist/npm/tools/tableEdit.js +4 -4
- package/dist/npm/tools/unlink.js +3 -3
- package/dist/npm/tools/viewHtml.js +1 -1
- package/dist/npm/utils/controlled-value.js +2 -1
- package/dist/npm/utils/index.js +35 -35
- package/package.json +12 -12
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { Editor } from './Editor';
|
|
2
|
+
import { EditorProps, EditorMountEvent, EditorPasteEvent, EditorChangeEvent, EditorExecuteEvent, EditorFocusEvent, EditorBlurEvent } from './EditorProps';
|
|
3
|
+
import { EditorTools } from './tools/main';
|
|
4
|
+
import { EditorToolsSettings } from './config/toolsSettings';
|
|
5
|
+
import { EditorUtils } from './utils';
|
|
6
|
+
import { Selection, SelectionRange, TextSelection, NodeSelection, AllSelection, EditorState, Plugin, PluginKey, Transaction, Decoration, DecorationSet, EditorView, Node, ResolvedPos, NodeRange, Fragment, Slice, ReplaceError, Mark, Schema, NodeType, MarkType, ContentMatch, DOMParser, DOMSerializer, Transform, Step, StepResult, joinPoint, canJoin, canSplit, insertPoint, dropPoint, liftTarget, findWrapping, StepMap, MapResult, Mapping, AddMarkStep, RemoveMarkStep, ReplaceStep, ReplaceAroundStep, replaceStep, deleteSelection, joinBackward, selectNodeBackward, joinForward, selectNodeForward, joinUp, joinDown, lift, newlineInCode, exitCode, createParagraphNear, liftEmptyBlock, splitBlock, splitBlockKeepMarks, selectParentNode, selectAll, wrapIn, setBlockType, toggleMark, autoJoin, chainCommands, history, undo, redo, undoDepth, redoDepth, InputRule, inputRules, undoInputRule, wrappingInputRule, textblockTypeInputRule, keymap, keydownHandler, addListNodes, wrapInList, splitListItem, liftListItem, sinkListItem, dropCursor, gapCursor, tableEditing, fixTables, cellAround, isInTable, selectionCell, moveCellForward, inSameTable, findCell, colCount, nextCell, removeColSpan, addColSpan, columnIsHeader, tableNodes, tableNodeTypes, CellSelection, TableMap, columnResizing, updateColumnsOnResize, selectedRect, addColumn, addColumnBefore, addColumnAfter, deleteColumn, rowIsHeader, addRow, deleteRow, mergeCells, splitCell, splitCellWithType, setCellAttr, toggleHeader, toggleHeaderRow, toggleHeaderColumn, toggleHeaderCell, goToNextCell, deleteTable } from '@progress/kendo-editor-common';
|
|
7
|
+
export { Shortcuts } from './config/shortcuts';
|
|
8
|
+
export { PasteCleanupSettings } from './config/pasteSettings';
|
|
9
|
+
/**
|
|
10
|
+
* An object containing the content of ProseMirror packages used at the Editor component.
|
|
11
|
+
*
|
|
12
|
+
* "prosemirror-state",
|
|
13
|
+
* "prosemirror-view",
|
|
14
|
+
* "prosemirror-model",
|
|
15
|
+
* "prosemirror-transform",
|
|
16
|
+
* "prosemirror-commands",
|
|
17
|
+
* "prosemirror-keymap",
|
|
18
|
+
* "prosemirror-tables",
|
|
19
|
+
* "prosemirror-schema-list",
|
|
20
|
+
* "prosemirror-history",
|
|
21
|
+
* "prosemirror-inputrules",
|
|
22
|
+
* "prosemirror-dropcursor",
|
|
23
|
+
* "prosemirror-gapcursor"
|
|
24
|
+
*/
|
|
25
|
+
export declare const ProseMirror: {
|
|
26
|
+
Selection: typeof Selection;
|
|
27
|
+
SelectionRange: typeof SelectionRange;
|
|
28
|
+
TextSelection: typeof TextSelection;
|
|
29
|
+
NodeSelection: typeof NodeSelection;
|
|
30
|
+
AllSelection: typeof AllSelection;
|
|
31
|
+
EditorState: typeof EditorState;
|
|
32
|
+
Plugin: typeof Plugin;
|
|
33
|
+
PluginKey: typeof PluginKey;
|
|
34
|
+
Transaction: typeof Transaction;
|
|
35
|
+
Decoration: typeof Decoration;
|
|
36
|
+
DecorationSet: typeof DecorationSet;
|
|
37
|
+
EditorView: typeof EditorView;
|
|
38
|
+
Node: typeof Node;
|
|
39
|
+
ResolvedPos: typeof ResolvedPos;
|
|
40
|
+
NodeRange: typeof NodeRange;
|
|
41
|
+
Fragment: typeof Fragment;
|
|
42
|
+
Slice: typeof Slice;
|
|
43
|
+
ReplaceError: typeof ReplaceError;
|
|
44
|
+
Mark: typeof Mark;
|
|
45
|
+
Schema: typeof Schema;
|
|
46
|
+
NodeType: typeof NodeType;
|
|
47
|
+
MarkType: typeof MarkType;
|
|
48
|
+
ContentMatch: typeof ContentMatch;
|
|
49
|
+
DOMParser: typeof DOMParser;
|
|
50
|
+
DOMSerializer: typeof DOMSerializer;
|
|
51
|
+
Transform: typeof Transform;
|
|
52
|
+
Step: typeof Step;
|
|
53
|
+
StepResult: typeof StepResult;
|
|
54
|
+
joinPoint: typeof joinPoint;
|
|
55
|
+
canJoin: typeof canJoin;
|
|
56
|
+
canSplit: typeof canSplit;
|
|
57
|
+
insertPoint: typeof insertPoint;
|
|
58
|
+
dropPoint: typeof dropPoint;
|
|
59
|
+
liftTarget: typeof liftTarget;
|
|
60
|
+
findWrapping: typeof findWrapping;
|
|
61
|
+
StepMap: typeof StepMap;
|
|
62
|
+
MapResult: typeof MapResult;
|
|
63
|
+
Mapping: typeof Mapping;
|
|
64
|
+
AddMarkStep: typeof AddMarkStep;
|
|
65
|
+
RemoveMarkStep: typeof RemoveMarkStep;
|
|
66
|
+
ReplaceStep: typeof ReplaceStep;
|
|
67
|
+
ReplaceAroundStep: typeof ReplaceAroundStep;
|
|
68
|
+
replaceStep: typeof replaceStep;
|
|
69
|
+
deleteSelection: typeof deleteSelection;
|
|
70
|
+
joinBackward: typeof joinBackward;
|
|
71
|
+
selectNodeBackward: typeof selectNodeBackward;
|
|
72
|
+
joinForward: typeof joinForward;
|
|
73
|
+
selectNodeForward: typeof selectNodeForward;
|
|
74
|
+
joinUp: typeof joinUp;
|
|
75
|
+
joinDown: typeof joinDown;
|
|
76
|
+
lift: typeof lift;
|
|
77
|
+
newlineInCode: typeof newlineInCode;
|
|
78
|
+
exitCode: typeof exitCode;
|
|
79
|
+
createParagraphNear: typeof createParagraphNear;
|
|
80
|
+
liftEmptyBlock: typeof liftEmptyBlock;
|
|
81
|
+
splitBlock: typeof splitBlock;
|
|
82
|
+
splitBlockKeepMarks: typeof splitBlockKeepMarks;
|
|
83
|
+
selectParentNode: typeof selectParentNode;
|
|
84
|
+
selectAll: typeof selectAll;
|
|
85
|
+
wrapIn: typeof wrapIn;
|
|
86
|
+
setBlockType: typeof setBlockType;
|
|
87
|
+
toggleMark: typeof toggleMark;
|
|
88
|
+
autoJoin: typeof autoJoin;
|
|
89
|
+
chainCommands: typeof chainCommands;
|
|
90
|
+
pcBaseKeymap: import("prosemirror-commands").Keymap<any>;
|
|
91
|
+
macBaseKeymap: import("prosemirror-commands").Keymap<any>;
|
|
92
|
+
baseKeymap: import("prosemirror-commands").Keymap<any>;
|
|
93
|
+
history: typeof history;
|
|
94
|
+
undo: typeof undo;
|
|
95
|
+
redo: typeof redo;
|
|
96
|
+
undoDepth: typeof undoDepth;
|
|
97
|
+
redoDepth: typeof redoDepth;
|
|
98
|
+
InputRule: typeof InputRule;
|
|
99
|
+
inputRules: typeof inputRules;
|
|
100
|
+
undoInputRule: typeof undoInputRule;
|
|
101
|
+
emDash: InputRule<any>;
|
|
102
|
+
ellipsis: InputRule<any>;
|
|
103
|
+
openDoubleQuote: InputRule<any>;
|
|
104
|
+
closeDoubleQuote: InputRule<any>;
|
|
105
|
+
openSingleQuote: InputRule<any>;
|
|
106
|
+
closeSingleQuote: InputRule<any>;
|
|
107
|
+
smartQuotes: InputRule<any>[];
|
|
108
|
+
wrappingInputRule: typeof wrappingInputRule;
|
|
109
|
+
textblockTypeInputRule: typeof textblockTypeInputRule;
|
|
110
|
+
keymap: typeof keymap;
|
|
111
|
+
keydownHandler: typeof keydownHandler;
|
|
112
|
+
orderedList: import("prosemirror-model").NodeSpec;
|
|
113
|
+
bulletList: import("prosemirror-model").NodeSpec;
|
|
114
|
+
listItem: import("prosemirror-model").NodeSpec;
|
|
115
|
+
addListNodes: typeof addListNodes;
|
|
116
|
+
wrapInList: typeof wrapInList;
|
|
117
|
+
splitListItem: typeof splitListItem;
|
|
118
|
+
liftListItem: typeof liftListItem;
|
|
119
|
+
sinkListItem: typeof sinkListItem;
|
|
120
|
+
dropCursor: typeof dropCursor;
|
|
121
|
+
gapCursor: typeof gapCursor;
|
|
122
|
+
tableEditing: typeof tableEditing;
|
|
123
|
+
fixTables: typeof fixTables;
|
|
124
|
+
fixTablesKey: PluginKey<any, any>;
|
|
125
|
+
cellAround: typeof cellAround;
|
|
126
|
+
isInTable: typeof isInTable;
|
|
127
|
+
selectionCell: typeof selectionCell;
|
|
128
|
+
moveCellForward: typeof moveCellForward;
|
|
129
|
+
inSameTable: typeof inSameTable;
|
|
130
|
+
findCell: typeof findCell;
|
|
131
|
+
colCount: typeof colCount;
|
|
132
|
+
nextCell: typeof nextCell;
|
|
133
|
+
removeColSpan: typeof removeColSpan;
|
|
134
|
+
addColSpan: typeof addColSpan;
|
|
135
|
+
columnIsHeader: typeof columnIsHeader;
|
|
136
|
+
tableNodes: typeof tableNodes;
|
|
137
|
+
tableNodeTypes: typeof tableNodeTypes;
|
|
138
|
+
CellSelection: typeof CellSelection;
|
|
139
|
+
TableMap: typeof TableMap;
|
|
140
|
+
tableEditingKey: PluginKey<any, any>;
|
|
141
|
+
columnResizing: typeof columnResizing;
|
|
142
|
+
columnResizingPluginKey: PluginKey<any, any>;
|
|
143
|
+
updateColumnsOnResize: typeof updateColumnsOnResize;
|
|
144
|
+
selectedRect: typeof selectedRect;
|
|
145
|
+
addColumn: typeof addColumn;
|
|
146
|
+
addColumnBefore: typeof addColumnBefore;
|
|
147
|
+
addColumnAfter: typeof addColumnAfter;
|
|
148
|
+
deleteColumn: typeof deleteColumn;
|
|
149
|
+
rowIsHeader: typeof rowIsHeader;
|
|
150
|
+
addRow: typeof addRow;
|
|
151
|
+
addRowBefore: (state: EditorState<any>, dispatch?: (tr: Transaction<any>) => void) => boolean;
|
|
152
|
+
addRowAfter: (state: EditorState<any>, dispatch?: (tr: Transaction<any>) => void) => boolean;
|
|
153
|
+
deleteRow: typeof deleteRow;
|
|
154
|
+
mergeCells: typeof mergeCells;
|
|
155
|
+
splitCell: typeof splitCell;
|
|
156
|
+
splitCellWithType: typeof splitCellWithType;
|
|
157
|
+
setCellAttr: typeof setCellAttr;
|
|
158
|
+
toggleHeader: typeof toggleHeader;
|
|
159
|
+
toggleHeaderRow: typeof toggleHeaderRow;
|
|
160
|
+
toggleHeaderColumn: typeof toggleHeaderColumn;
|
|
161
|
+
toggleHeaderCell: typeof toggleHeaderCell;
|
|
162
|
+
goToNextCell: typeof goToNextCell;
|
|
163
|
+
deleteTable: typeof deleteTable;
|
|
164
|
+
};
|
|
165
|
+
export { Align } from './tools/align';
|
|
166
|
+
export { Indent } from './tools/indent';
|
|
167
|
+
export { List } from './tools/lists';
|
|
168
|
+
export { Outdent } from './tools/outdent';
|
|
169
|
+
export { InlineFormat } from './tools/inlineFormat';
|
|
170
|
+
export { FontName } from './tools/fontStyle';
|
|
171
|
+
export { FormatBlock } from './tools/formatBlock';
|
|
172
|
+
export { ProseMirror as ProseMirrorTool } from './tools/proseMirrorTool';
|
|
173
|
+
export { LinkTool } from './tools/insertLink';
|
|
174
|
+
export { Unlink } from './tools/unlink';
|
|
175
|
+
export { CleanFormatting } from './tools/cleanFormatting';
|
|
176
|
+
export { SelectAll } from './tools/selectAll';
|
|
177
|
+
export { InsertImage } from './tools/insertImage';
|
|
178
|
+
export { InsertTable } from './tools/insertTable/tool';
|
|
179
|
+
export { ViewHtml } from './tools/viewHtml';
|
|
180
|
+
export { Pdf } from './tools/pdf';
|
|
181
|
+
export { Print } from './tools/print';
|
|
182
|
+
export { FindAndReplace } from './tools/findReplace';
|
|
183
|
+
export { ApplyColor } from './tools/applyColor';
|
|
184
|
+
export { Editor, EditorProps, EditorMountEvent, EditorPasteEvent, EditorChangeEvent, EditorExecuteEvent, EditorFocusEvent, EditorBlurEvent, EditorTools, EditorToolsSettings, EditorUtils };
|
package/dist/esm/main.js
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { Editor } from './Editor.js';
|
|
2
|
+
import { EditorToolsSettings } from './config/toolsSettings.js';
|
|
3
|
+
import { EditorUtils } from './utils.js';
|
|
4
|
+
import {
|
|
5
|
+
// prosemirror-state
|
|
6
|
+
Selection, SelectionRange, TextSelection, NodeSelection, AllSelection, EditorState, Plugin, PluginKey, Transaction,
|
|
7
|
+
// prosemirror-view
|
|
8
|
+
Decoration, DecorationSet, EditorView,
|
|
9
|
+
// prosemirror-model
|
|
10
|
+
Node, ResolvedPos, NodeRange, Fragment, Slice, ReplaceError, Mark, Schema, NodeType, MarkType, ContentMatch, DOMParser, DOMSerializer,
|
|
11
|
+
// prosemirror-transform
|
|
12
|
+
Transform, Step, StepResult, joinPoint, canJoin, canSplit, insertPoint, dropPoint, liftTarget, findWrapping, StepMap, MapResult, Mapping, AddMarkStep, RemoveMarkStep, ReplaceStep, ReplaceAroundStep, replaceStep,
|
|
13
|
+
// prosemirror-commands
|
|
14
|
+
deleteSelection, joinBackward, selectNodeBackward, joinForward, selectNodeForward, joinUp, joinDown, lift, newlineInCode, exitCode, createParagraphNear, liftEmptyBlock, splitBlock, splitBlockKeepMarks, selectParentNode, selectAll, wrapIn, setBlockType, toggleMark, autoJoin, chainCommands, pcBaseKeymap, macBaseKeymap, baseKeymap,
|
|
15
|
+
// prosemirror-history
|
|
16
|
+
history, undo, redo, undoDepth, redoDepth,
|
|
17
|
+
// prosemirror-inputrules
|
|
18
|
+
InputRule, inputRules, undoInputRule, emDash, ellipsis, openDoubleQuote, closeDoubleQuote, openSingleQuote, closeSingleQuote, smartQuotes, wrappingInputRule, textblockTypeInputRule,
|
|
19
|
+
// prosemirror-keymap
|
|
20
|
+
keymap, keydownHandler,
|
|
21
|
+
// prosemirror-schema-list
|
|
22
|
+
orderedList, bulletList, listItem, addListNodes, wrapInList, splitListItem, liftListItem, sinkListItem,
|
|
23
|
+
// prosemirror-dropcursor
|
|
24
|
+
dropCursor,
|
|
25
|
+
// prosemirror-gapcursor
|
|
26
|
+
gapCursor,
|
|
27
|
+
// prosemirror-tables
|
|
28
|
+
tableEditing, fixTables, fixTablesKey, cellAround, isInTable, selectionCell, moveCellForward, inSameTable, findCell, colCount, nextCell, removeColSpan, addColSpan, columnIsHeader, tableNodes, tableNodeTypes, CellSelection, TableMap, tableEditingKey, columnResizing, columnResizingPluginKey, updateColumnsOnResize, selectedRect, addColumn, addColumnBefore, addColumnAfter, deleteColumn, rowIsHeader, addRow, addRowBefore, addRowAfter, deleteRow, mergeCells, splitCell, splitCellWithType, setCellAttr, toggleHeader, toggleHeaderRow, toggleHeaderColumn, toggleHeaderCell, goToNextCell, deleteTable } from '@progress/kendo-editor-common';
|
|
29
|
+
/**
|
|
30
|
+
* An object containing the content of ProseMirror packages used at the Editor component.
|
|
31
|
+
*
|
|
32
|
+
* "prosemirror-state",
|
|
33
|
+
* "prosemirror-view",
|
|
34
|
+
* "prosemirror-model",
|
|
35
|
+
* "prosemirror-transform",
|
|
36
|
+
* "prosemirror-commands",
|
|
37
|
+
* "prosemirror-keymap",
|
|
38
|
+
* "prosemirror-tables",
|
|
39
|
+
* "prosemirror-schema-list",
|
|
40
|
+
* "prosemirror-history",
|
|
41
|
+
* "prosemirror-inputrules",
|
|
42
|
+
* "prosemirror-dropcursor",
|
|
43
|
+
* "prosemirror-gapcursor"
|
|
44
|
+
*/
|
|
45
|
+
export var ProseMirror = {
|
|
46
|
+
// prosemirror-state
|
|
47
|
+
Selection: Selection,
|
|
48
|
+
SelectionRange: SelectionRange,
|
|
49
|
+
TextSelection: TextSelection,
|
|
50
|
+
NodeSelection: NodeSelection,
|
|
51
|
+
AllSelection: AllSelection,
|
|
52
|
+
EditorState: EditorState,
|
|
53
|
+
Plugin: Plugin,
|
|
54
|
+
PluginKey: PluginKey,
|
|
55
|
+
Transaction: Transaction,
|
|
56
|
+
// prosemirror-view
|
|
57
|
+
Decoration: Decoration,
|
|
58
|
+
DecorationSet: DecorationSet,
|
|
59
|
+
EditorView: EditorView,
|
|
60
|
+
// prosemirror-model
|
|
61
|
+
Node: Node,
|
|
62
|
+
ResolvedPos: ResolvedPos,
|
|
63
|
+
NodeRange: NodeRange,
|
|
64
|
+
Fragment: Fragment,
|
|
65
|
+
Slice: Slice,
|
|
66
|
+
ReplaceError: ReplaceError,
|
|
67
|
+
Mark: Mark,
|
|
68
|
+
Schema: Schema,
|
|
69
|
+
NodeType: NodeType,
|
|
70
|
+
MarkType: MarkType,
|
|
71
|
+
ContentMatch: ContentMatch,
|
|
72
|
+
DOMParser: DOMParser,
|
|
73
|
+
DOMSerializer: DOMSerializer,
|
|
74
|
+
// prosemirror-transform
|
|
75
|
+
Transform: Transform,
|
|
76
|
+
Step: Step,
|
|
77
|
+
StepResult: StepResult,
|
|
78
|
+
joinPoint: joinPoint,
|
|
79
|
+
canJoin: canJoin,
|
|
80
|
+
canSplit: canSplit,
|
|
81
|
+
insertPoint: insertPoint,
|
|
82
|
+
dropPoint: dropPoint,
|
|
83
|
+
liftTarget: liftTarget,
|
|
84
|
+
findWrapping: findWrapping,
|
|
85
|
+
StepMap: StepMap,
|
|
86
|
+
MapResult: MapResult,
|
|
87
|
+
Mapping: Mapping,
|
|
88
|
+
AddMarkStep: AddMarkStep,
|
|
89
|
+
RemoveMarkStep: RemoveMarkStep,
|
|
90
|
+
ReplaceStep: ReplaceStep,
|
|
91
|
+
ReplaceAroundStep: ReplaceAroundStep,
|
|
92
|
+
replaceStep: replaceStep,
|
|
93
|
+
// prosemirror-commands
|
|
94
|
+
deleteSelection: deleteSelection,
|
|
95
|
+
joinBackward: joinBackward,
|
|
96
|
+
selectNodeBackward: selectNodeBackward,
|
|
97
|
+
joinForward: joinForward,
|
|
98
|
+
selectNodeForward: selectNodeForward,
|
|
99
|
+
joinUp: joinUp,
|
|
100
|
+
joinDown: joinDown,
|
|
101
|
+
lift: lift,
|
|
102
|
+
newlineInCode: newlineInCode,
|
|
103
|
+
exitCode: exitCode,
|
|
104
|
+
createParagraphNear: createParagraphNear,
|
|
105
|
+
liftEmptyBlock: liftEmptyBlock,
|
|
106
|
+
splitBlock: splitBlock,
|
|
107
|
+
splitBlockKeepMarks: splitBlockKeepMarks,
|
|
108
|
+
selectParentNode: selectParentNode,
|
|
109
|
+
selectAll: selectAll,
|
|
110
|
+
wrapIn: wrapIn,
|
|
111
|
+
setBlockType: setBlockType,
|
|
112
|
+
toggleMark: toggleMark,
|
|
113
|
+
autoJoin: autoJoin,
|
|
114
|
+
chainCommands: chainCommands,
|
|
115
|
+
pcBaseKeymap: pcBaseKeymap,
|
|
116
|
+
macBaseKeymap: macBaseKeymap,
|
|
117
|
+
baseKeymap: baseKeymap,
|
|
118
|
+
// prosemirror-history
|
|
119
|
+
history: history,
|
|
120
|
+
undo: undo,
|
|
121
|
+
redo: redo,
|
|
122
|
+
undoDepth: undoDepth,
|
|
123
|
+
redoDepth: redoDepth,
|
|
124
|
+
// prosemirror-inputrules
|
|
125
|
+
InputRule: InputRule,
|
|
126
|
+
inputRules: inputRules,
|
|
127
|
+
undoInputRule: undoInputRule,
|
|
128
|
+
emDash: emDash,
|
|
129
|
+
ellipsis: ellipsis,
|
|
130
|
+
openDoubleQuote: openDoubleQuote,
|
|
131
|
+
closeDoubleQuote: closeDoubleQuote,
|
|
132
|
+
openSingleQuote: openSingleQuote,
|
|
133
|
+
closeSingleQuote: closeSingleQuote,
|
|
134
|
+
smartQuotes: smartQuotes,
|
|
135
|
+
wrappingInputRule: wrappingInputRule,
|
|
136
|
+
textblockTypeInputRule: textblockTypeInputRule,
|
|
137
|
+
// prosemirror-keymap
|
|
138
|
+
keymap: keymap,
|
|
139
|
+
keydownHandler: keydownHandler,
|
|
140
|
+
// prosemirror-schema-list
|
|
141
|
+
orderedList: orderedList,
|
|
142
|
+
bulletList: bulletList,
|
|
143
|
+
listItem: listItem,
|
|
144
|
+
addListNodes: addListNodes,
|
|
145
|
+
wrapInList: wrapInList,
|
|
146
|
+
splitListItem: splitListItem,
|
|
147
|
+
liftListItem: liftListItem,
|
|
148
|
+
sinkListItem: sinkListItem,
|
|
149
|
+
// prosemirror-dropcursor
|
|
150
|
+
dropCursor: dropCursor,
|
|
151
|
+
// prosemirror-gapcursor
|
|
152
|
+
gapCursor: gapCursor,
|
|
153
|
+
// prosemirror-tables
|
|
154
|
+
tableEditing: tableEditing,
|
|
155
|
+
fixTables: fixTables,
|
|
156
|
+
fixTablesKey: fixTablesKey,
|
|
157
|
+
cellAround: cellAround,
|
|
158
|
+
isInTable: isInTable,
|
|
159
|
+
selectionCell: selectionCell,
|
|
160
|
+
moveCellForward: moveCellForward,
|
|
161
|
+
inSameTable: inSameTable,
|
|
162
|
+
findCell: findCell,
|
|
163
|
+
colCount: colCount,
|
|
164
|
+
nextCell: nextCell,
|
|
165
|
+
removeColSpan: removeColSpan,
|
|
166
|
+
addColSpan: addColSpan,
|
|
167
|
+
columnIsHeader: columnIsHeader,
|
|
168
|
+
tableNodes: tableNodes,
|
|
169
|
+
tableNodeTypes: tableNodeTypes,
|
|
170
|
+
CellSelection: CellSelection,
|
|
171
|
+
TableMap: TableMap,
|
|
172
|
+
tableEditingKey: tableEditingKey,
|
|
173
|
+
columnResizing: columnResizing,
|
|
174
|
+
columnResizingPluginKey: columnResizingPluginKey,
|
|
175
|
+
updateColumnsOnResize: updateColumnsOnResize,
|
|
176
|
+
selectedRect: selectedRect,
|
|
177
|
+
addColumn: addColumn,
|
|
178
|
+
addColumnBefore: addColumnBefore,
|
|
179
|
+
addColumnAfter: addColumnAfter,
|
|
180
|
+
deleteColumn: deleteColumn,
|
|
181
|
+
rowIsHeader: rowIsHeader,
|
|
182
|
+
addRow: addRow,
|
|
183
|
+
addRowBefore: addRowBefore,
|
|
184
|
+
addRowAfter: addRowAfter,
|
|
185
|
+
deleteRow: deleteRow,
|
|
186
|
+
mergeCells: mergeCells,
|
|
187
|
+
splitCell: splitCell,
|
|
188
|
+
splitCellWithType: splitCellWithType,
|
|
189
|
+
setCellAttr: setCellAttr,
|
|
190
|
+
toggleHeader: toggleHeader,
|
|
191
|
+
toggleHeaderRow: toggleHeaderRow,
|
|
192
|
+
toggleHeaderColumn: toggleHeaderColumn,
|
|
193
|
+
toggleHeaderCell: toggleHeaderCell,
|
|
194
|
+
goToNextCell: goToNextCell,
|
|
195
|
+
deleteTable: deleteTable
|
|
196
|
+
};
|
|
197
|
+
export { Align } from './tools/align.js';
|
|
198
|
+
export { Indent } from './tools/indent.js';
|
|
199
|
+
export { List } from './tools/lists.js';
|
|
200
|
+
export { Outdent } from './tools/outdent.js';
|
|
201
|
+
export { InlineFormat } from './tools/inlineFormat.js';
|
|
202
|
+
export { FontName } from './tools/fontStyle.js';
|
|
203
|
+
export { FormatBlock } from './tools/formatBlock.js';
|
|
204
|
+
export { ProseMirror as ProseMirrorTool } from './tools/proseMirrorTool.js';
|
|
205
|
+
export { LinkTool } from './tools/insertLink.js';
|
|
206
|
+
export { Unlink } from './tools/unlink.js';
|
|
207
|
+
export { CleanFormatting } from './tools/cleanFormatting.js';
|
|
208
|
+
export { SelectAll } from './tools/selectAll.js';
|
|
209
|
+
export { InsertImage } from './tools/insertImage.js';
|
|
210
|
+
export { InsertTable } from './tools/insertTable/tool.js';
|
|
211
|
+
export { ViewHtml } from './tools/viewHtml.js';
|
|
212
|
+
export { Pdf } from './tools/pdf.js';
|
|
213
|
+
export { Print } from './tools/print.js';
|
|
214
|
+
export { FindAndReplace } from './tools/findReplace.js';
|
|
215
|
+
export { ApplyColor } from './tools/applyColor.js';
|
|
216
|
+
export { Editor, EditorToolsSettings, EditorUtils };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export declare const messages: {
|
|
5
|
+
"editor.bold": string;
|
|
6
|
+
"editor.italic": string;
|
|
7
|
+
"editor.underline": string;
|
|
8
|
+
"editor.strikethrough": string;
|
|
9
|
+
"editor.subscript": string;
|
|
10
|
+
"editor.superscript": string;
|
|
11
|
+
"editor.unlink": string;
|
|
12
|
+
"editor.undo": string;
|
|
13
|
+
"editor.redo": string;
|
|
14
|
+
"editor.fontSize": string;
|
|
15
|
+
"editor.fontName": string;
|
|
16
|
+
"editor.format": string;
|
|
17
|
+
"editor.alignLeft": string;
|
|
18
|
+
"editor.alignRight": string;
|
|
19
|
+
"editor.alignCenter": string;
|
|
20
|
+
"editor.alignJustify": string;
|
|
21
|
+
"editor.indent": string;
|
|
22
|
+
"editor.outdent": string;
|
|
23
|
+
"editor.orderedList": string;
|
|
24
|
+
"editor.bulletList": string;
|
|
25
|
+
"editor.print": string;
|
|
26
|
+
"editor.selectAll": string;
|
|
27
|
+
"editor.cleanFormatting": string;
|
|
28
|
+
"editor.pdf": string;
|
|
29
|
+
"editor.foregroundColor": string;
|
|
30
|
+
"editor.backgroundColor": string;
|
|
31
|
+
"editor.createTable": string;
|
|
32
|
+
"editor.insertTableHint": string;
|
|
33
|
+
"editor.addRowBefore": string;
|
|
34
|
+
"editor.addRowAfter": string;
|
|
35
|
+
"editor.addColumnBefore": string;
|
|
36
|
+
"editor.addColumnAfter": string;
|
|
37
|
+
"editor.deleteRow": string;
|
|
38
|
+
"editor.deleteColumn": string;
|
|
39
|
+
"editor.deleteTable": string;
|
|
40
|
+
"editor.mergeCells": string;
|
|
41
|
+
"editor.splitCell": string;
|
|
42
|
+
"editor.hyperlink": string;
|
|
43
|
+
"editor.hyperlink-dialog-title": string;
|
|
44
|
+
"editor.hyperlink-dialog-content-address": string;
|
|
45
|
+
"editor.hyperlink-dialog-content-title": string;
|
|
46
|
+
"editor.hyperlink-dialog-content-newwindow": string;
|
|
47
|
+
"editor.hyperlink-dialog-cancel": string;
|
|
48
|
+
"editor.hyperlink-dialog-insert": string;
|
|
49
|
+
"editor.insertFile": string;
|
|
50
|
+
"editor.insertfile-dialog-title": string;
|
|
51
|
+
"editor.insertfile-dialog-content-address": string;
|
|
52
|
+
"editor.insertfile-dialog-content-title": string;
|
|
53
|
+
"editor.insertfile-dialog-cancel": string;
|
|
54
|
+
"editor.insertfile-dialog-insert": string;
|
|
55
|
+
"editor.image": string;
|
|
56
|
+
"editor.image-dialog-title": string;
|
|
57
|
+
"editor.image-address": string;
|
|
58
|
+
"editor.image-title": string;
|
|
59
|
+
"editor.image-altText": string;
|
|
60
|
+
"editor.image-width": string;
|
|
61
|
+
"editor.image-height": string;
|
|
62
|
+
"editor.image-cancel": string;
|
|
63
|
+
"editor.image-insert": string;
|
|
64
|
+
"editor.viewHtml": string;
|
|
65
|
+
"editor.viewHtml-dialog-title": string;
|
|
66
|
+
"editor.viewHtml-cancel": string;
|
|
67
|
+
"editor.viewHtml-update": string;
|
|
68
|
+
"editor.findReplace-tool-title": string;
|
|
69
|
+
"editor.findReplace-dialog-title": string;
|
|
70
|
+
"editor.findReplace-tab-find": string;
|
|
71
|
+
"editor.findReplace-tab-replace": string;
|
|
72
|
+
"editor.findReplace-findWhat": string;
|
|
73
|
+
"editor.findReplace-replaceWith": string;
|
|
74
|
+
"editor.findReplace-replace": string;
|
|
75
|
+
"editor.findReplace-replaceAll": string;
|
|
76
|
+
"editor.findReplace-matchCase": string;
|
|
77
|
+
"editor.findReplace-matchWord": string;
|
|
78
|
+
"editor.findReplace-matchCyclic": string;
|
|
79
|
+
"editor.findReplace-useRegExp": string;
|
|
80
|
+
"editor.findReplace-prevMatch": string;
|
|
81
|
+
"editor.findReplace-nextMatch": string;
|
|
82
|
+
"editor.findReplace-matches": string;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
*/
|
|
87
|
+
export declare const keys: {
|
|
88
|
+
bold: string;
|
|
89
|
+
italic: string;
|
|
90
|
+
underline: string;
|
|
91
|
+
strikethrough: string;
|
|
92
|
+
subscript: string;
|
|
93
|
+
superscript: string;
|
|
94
|
+
unlink: string;
|
|
95
|
+
undo: string;
|
|
96
|
+
redo: string;
|
|
97
|
+
fontSize: string;
|
|
98
|
+
fontName: string;
|
|
99
|
+
format: string;
|
|
100
|
+
alignLeft: string;
|
|
101
|
+
alignRight: string;
|
|
102
|
+
alignCenter: string;
|
|
103
|
+
alignJustify: string;
|
|
104
|
+
indent: string;
|
|
105
|
+
outdent: string;
|
|
106
|
+
orderedList: string;
|
|
107
|
+
bulletList: string;
|
|
108
|
+
print: string;
|
|
109
|
+
selectAll: string;
|
|
110
|
+
cleanFormatting: string;
|
|
111
|
+
pdf: string;
|
|
112
|
+
foregroundColor: string;
|
|
113
|
+
backgroundColor: string;
|
|
114
|
+
createTable: string;
|
|
115
|
+
createTableHint: string;
|
|
116
|
+
addRowBefore: string;
|
|
117
|
+
addRowAfter: string;
|
|
118
|
+
addColumnBefore: string;
|
|
119
|
+
addColumnAfter: string;
|
|
120
|
+
deleteRow: string;
|
|
121
|
+
deleteColumn: string;
|
|
122
|
+
deleteTable: string;
|
|
123
|
+
mergeCells: string;
|
|
124
|
+
splitCell: string;
|
|
125
|
+
insertHyperlink: string;
|
|
126
|
+
insertHyperlinkDialogTitle: string;
|
|
127
|
+
insertHyperlinkAddress: string;
|
|
128
|
+
insertHyperlinkTitle: string;
|
|
129
|
+
insertHyperlinkNewWindow: string;
|
|
130
|
+
insertHyperlinkCancel: string;
|
|
131
|
+
insertHyperlinkInsert: string;
|
|
132
|
+
insertFile: string;
|
|
133
|
+
insertFileDialogTitle: string;
|
|
134
|
+
insertFileAddress: string;
|
|
135
|
+
insertFileTitle: string;
|
|
136
|
+
insertFileCancel: string;
|
|
137
|
+
insertFileInsert: string;
|
|
138
|
+
insertImage: string;
|
|
139
|
+
insertImageDialogTitle: string;
|
|
140
|
+
insertImageAddress: string;
|
|
141
|
+
insertImageTitle: string;
|
|
142
|
+
insertImageAltText: string;
|
|
143
|
+
insertImageWidth: string;
|
|
144
|
+
insertImageHeight: string;
|
|
145
|
+
insertImageCancel: string;
|
|
146
|
+
insertImageInsert: string;
|
|
147
|
+
viewHtml: string;
|
|
148
|
+
viewHtmlDialogTitle: string;
|
|
149
|
+
viewHtmlCancel: string;
|
|
150
|
+
viewHtmlUpdate: string;
|
|
151
|
+
findReplaceToolTitle: string;
|
|
152
|
+
findReplaceDialogTitle: string;
|
|
153
|
+
findReplaceTabFind: string;
|
|
154
|
+
findReplaceTabReplace: string;
|
|
155
|
+
findReplaceFindWhat: string;
|
|
156
|
+
findReplaceReplaceWith: string;
|
|
157
|
+
findReplaceReplace: string;
|
|
158
|
+
findReplaceReplaceAll: string;
|
|
159
|
+
findReplaceMatchCase: string;
|
|
160
|
+
findReplaceMatchWord: string;
|
|
161
|
+
findReplaceMatchCyclic: string;
|
|
162
|
+
findReplaceUseRegExp: string;
|
|
163
|
+
findReplacePrevMatch: string;
|
|
164
|
+
findReplaceNextMatch: string;
|
|
165
|
+
findReplaceMatches: string;
|
|
166
|
+
};
|