@progress/kendo-vue-editor 3.5.1 → 3.5.2-dev.202209020458
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/dist/cdn/js/kendo-vue-editor.js +1 -1
- package/dist/es/Editor.js +1 -1
- package/dist/es/EditorProps.d.ts +1 -1
- package/dist/es/config/shortcuts.d.ts +2 -0
- package/dist/es/config/toolsSettings.js +1 -1
- package/dist/es/dialogs/FindReplace.js +1 -1
- package/dist/es/dialogs/insertImage.js +1 -1
- package/dist/es/dialogs/insertLink.js +1 -1
- package/dist/es/dialogs/viewHtml.js +1 -1
- package/dist/es/main.d.ts +1 -1
- package/dist/es/main.js +1 -1
- package/dist/es/messages/{index.d.ts → main.d.ts} +0 -0
- package/dist/es/messages/{index.js → main.js} +0 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/align.js +1 -1
- package/dist/es/tools/applyColor.js +1 -1
- package/dist/es/tools/cleanFormatting.js +1 -1
- package/dist/es/tools/findReplace.js +1 -1
- package/dist/es/tools/fontStyle.js +1 -1
- package/dist/es/tools/formatBlock.js +1 -1
- package/dist/es/tools/indent.js +1 -1
- package/dist/es/tools/inlineFormat.js +1 -1
- package/dist/es/tools/insertImage.js +1 -1
- package/dist/es/tools/insertLink.js +1 -1
- package/dist/es/tools/insertTable/{index.d.ts → main.d.ts} +0 -0
- package/dist/es/tools/insertTable/{index.js → main.js} +0 -0
- package/dist/es/tools/insertTable/tool.js +1 -1
- package/dist/es/tools/lists.js +1 -1
- package/dist/es/tools/outdent.js +1 -1
- package/dist/es/tools/pdf.js +1 -1
- package/dist/es/tools/print.js +1 -1
- package/dist/es/tools/proseMirrorTool.js +1 -1
- package/dist/es/tools/selectAll.js +1 -1
- package/dist/es/tools/unlink.js +1 -1
- package/dist/es/tools/viewHtml.js +1 -1
- package/dist/es/utils/controlled-value.js +1 -1
- package/dist/es/utils/{index.d.ts → main.d.ts} +2 -2
- package/dist/es/utils/{index.js → main.js} +2 -2
- package/dist/esm/Editor.js +1 -1
- package/dist/esm/EditorProps.d.ts +1 -1
- package/dist/esm/config/shortcuts.d.ts +2 -0
- package/dist/esm/config/toolsSettings.js +1 -1
- package/dist/esm/dialogs/FindReplace.js +1 -1
- package/dist/esm/dialogs/insertImage.js +1 -1
- package/dist/esm/dialogs/insertLink.js +1 -1
- package/dist/esm/dialogs/viewHtml.js +1 -1
- package/dist/esm/main.d.ts +1 -1
- package/dist/esm/main.js +1 -1
- package/dist/esm/messages/{index.d.ts → main.d.ts} +0 -0
- package/dist/esm/messages/{index.js → main.js} +0 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/tools/align.js +1 -1
- package/dist/esm/tools/applyColor.js +1 -1
- package/dist/esm/tools/cleanFormatting.js +1 -1
- package/dist/esm/tools/findReplace.js +1 -1
- package/dist/esm/tools/fontStyle.js +1 -1
- package/dist/esm/tools/formatBlock.js +1 -1
- package/dist/esm/tools/indent.js +1 -1
- package/dist/esm/tools/inlineFormat.js +1 -1
- package/dist/esm/tools/insertImage.js +1 -1
- package/dist/esm/tools/insertLink.js +1 -1
- package/dist/esm/tools/insertTable/{index.d.ts → main.d.ts} +0 -0
- package/dist/esm/tools/insertTable/{index.js → main.js} +0 -0
- package/dist/esm/tools/insertTable/tool.js +1 -1
- package/dist/esm/tools/lists.js +1 -1
- package/dist/esm/tools/outdent.js +1 -1
- package/dist/esm/tools/pdf.js +1 -1
- package/dist/esm/tools/print.js +1 -1
- package/dist/esm/tools/proseMirrorTool.js +1 -1
- package/dist/esm/tools/selectAll.js +1 -1
- package/dist/esm/tools/unlink.js +1 -1
- package/dist/esm/tools/viewHtml.js +1 -1
- package/dist/esm/utils/controlled-value.js +1 -1
- package/dist/esm/utils/{index.d.ts → main.d.ts} +2 -2
- package/dist/esm/utils/{index.js → main.js} +2 -2
- package/dist/npm/Editor.js +6 -6
- package/dist/npm/EditorProps.d.ts +1 -1
- package/dist/npm/config/shortcuts.d.ts +2 -0
- package/dist/npm/config/toolsSettings.js +79 -79
- package/dist/npm/dialogs/FindReplace.js +62 -62
- package/dist/npm/dialogs/insertImage.js +12 -12
- package/dist/npm/dialogs/insertLink.js +22 -22
- package/dist/npm/dialogs/viewHtml.js +7 -7
- package/dist/npm/main.d.ts +1 -1
- package/dist/npm/main.js +2 -2
- package/dist/npm/messages/{index.d.ts → main.d.ts} +0 -0
- package/dist/npm/messages/{index.js → main.js} +0 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/align.js +2 -2
- package/dist/npm/tools/applyColor.js +2 -2
- package/dist/npm/tools/cleanFormatting.js +2 -2
- package/dist/npm/tools/findReplace.js +2 -2
- package/dist/npm/tools/fontStyle.js +2 -2
- package/dist/npm/tools/formatBlock.js +2 -2
- package/dist/npm/tools/indent.js +2 -2
- package/dist/npm/tools/inlineFormat.js +2 -2
- package/dist/npm/tools/insertImage.js +2 -2
- package/dist/npm/tools/insertLink.js +2 -2
- package/dist/npm/tools/insertTable/{index.d.ts → main.d.ts} +0 -0
- package/dist/npm/tools/insertTable/{index.js → main.js} +0 -0
- package/dist/npm/tools/insertTable/tool.js +3 -3
- package/dist/npm/tools/lists.js +2 -2
- package/dist/npm/tools/outdent.js +2 -2
- package/dist/npm/tools/pdf.js +2 -2
- package/dist/npm/tools/print.js +2 -2
- package/dist/npm/tools/proseMirrorTool.js +2 -2
- package/dist/npm/tools/selectAll.js +2 -2
- package/dist/npm/tools/unlink.js +2 -2
- package/dist/npm/tools/viewHtml.js +2 -2
- package/dist/npm/utils/controlled-value.js +2 -2
- package/dist/npm/utils/{index.d.ts → main.d.ts} +2 -2
- package/dist/npm/utils/{index.js → main.js} +2 -2
- package/package.json +12 -12
package/dist/esm/tools/lists.js
CHANGED
|
@@ -35,7 +35,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
35
35
|
import { Button as kbutton } from '@progress/kendo-vue-buttons';
|
|
36
36
|
import { hasNode, toggleList } from '@progress/kendo-editor-common';
|
|
37
37
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
38
|
-
import { messages } from '
|
|
38
|
+
import { messages } from '../messages/main.js';
|
|
39
39
|
/**
|
|
40
40
|
* @hidden
|
|
41
41
|
*/
|
|
@@ -35,7 +35,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
35
35
|
import { Button as kbutton } from '@progress/kendo-vue-buttons';
|
|
36
36
|
import { indentBlocks, isIndented, canOutdentAsListItem, liftListItem } from '@progress/kendo-editor-common';
|
|
37
37
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
38
|
-
import { messages } from '
|
|
38
|
+
import { messages } from '../messages/main.js';
|
|
39
39
|
/**
|
|
40
40
|
* @hidden
|
|
41
41
|
*/
|
package/dist/esm/tools/pdf.js
CHANGED
|
@@ -35,7 +35,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
35
35
|
import { Button as kbutton } from '@progress/kendo-vue-buttons';
|
|
36
36
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
37
37
|
import { savePDF } from '@progress/kendo-vue-pdf';
|
|
38
|
-
import { messages } from '
|
|
38
|
+
import { messages } from '../messages/main.js';
|
|
39
39
|
import { EditorToolsSettings } from './../config/toolsSettings.js';
|
|
40
40
|
var pdf = EditorToolsSettings.pdf,
|
|
41
41
|
defaultSavePdfOptions = EditorToolsSettings.savePdfOptions;
|
package/dist/esm/tools/print.js
CHANGED
|
@@ -34,7 +34,7 @@ var gh = allVue.h;
|
|
|
34
34
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
35
35
|
import { Button as kbutton } from '@progress/kendo-vue-buttons';
|
|
36
36
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
37
|
-
import { messages } from '
|
|
37
|
+
import { messages } from '../messages/main.js';
|
|
38
38
|
import { EditorToolsSettings } from './../config/toolsSettings.js';
|
|
39
39
|
var print = EditorToolsSettings.print;
|
|
40
40
|
/**
|
|
@@ -35,7 +35,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
35
35
|
import { Button as kbutton } from '@progress/kendo-vue-buttons';
|
|
36
36
|
import { noop } from '@progress/kendo-vue-common';
|
|
37
37
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
38
|
-
import { messages } from '
|
|
38
|
+
import { messages } from '../messages/main.js';
|
|
39
39
|
/**
|
|
40
40
|
* @hidden
|
|
41
41
|
*/
|
|
@@ -34,7 +34,7 @@ var gh = allVue.h;
|
|
|
34
34
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
35
35
|
import { Button as kbutton } from '@progress/kendo-vue-buttons';
|
|
36
36
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
37
|
-
import { messages } from '
|
|
37
|
+
import { messages } from '../messages/main.js';
|
|
38
38
|
import { selectAll as selectAllCommand } from '@progress/kendo-editor-common';
|
|
39
39
|
import { EditorToolsSettings } from './../config/toolsSettings.js';
|
|
40
40
|
var selectAll = EditorToolsSettings.selectAll;
|
package/dist/esm/tools/unlink.js
CHANGED
|
@@ -35,7 +35,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
35
35
|
import { Button as kbutton } from '@progress/kendo-vue-buttons';
|
|
36
36
|
import { removeLink, hasMark } from '@progress/kendo-editor-common';
|
|
37
37
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
38
|
-
import { messages } from '
|
|
38
|
+
import { messages } from '../messages/main.js';
|
|
39
39
|
/**
|
|
40
40
|
* @hidden
|
|
41
41
|
*/
|
|
@@ -35,7 +35,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
35
35
|
import { Button as kbutton } from '@progress/kendo-vue-buttons';
|
|
36
36
|
import { ViewHtmlDialog } from '../dialogs/viewHtml.js';
|
|
37
37
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
38
|
-
import { messages } from '
|
|
38
|
+
import { messages } from '../messages/main.js';
|
|
39
39
|
/**
|
|
40
40
|
* @hidden
|
|
41
41
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="prosemirror-model" />
|
|
2
|
-
import * as shortcuts from '
|
|
2
|
+
import * as shortcuts from '../config/shortcuts';
|
|
3
3
|
import { ImageResizeOptions as ImageResizeOptionsCommon, Schema, NodeSpec, MarkSpec, Node, NodeType, Mark, MarkType, ParseOptions, EditorView, EditorState, Transaction, Plugin, PluginKey } from '@progress/kendo-editor-common';
|
|
4
|
-
import { EditorToolsSettings } from '
|
|
4
|
+
import { EditorToolsSettings } from '../config/toolsSettings';
|
|
5
5
|
import { PasteCleanupSettings } from '../config/pasteSettings';
|
|
6
6
|
/**
|
|
7
7
|
* Represents a wrapping namespace for the utility functions, `nodes`, and `marks` objects of the Editor.
|
|
@@ -9,8 +9,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import * as shortcuts from '
|
|
13
|
-
import { marks as schemaMarks, nodes as schemaNodes } from '
|
|
12
|
+
import * as shortcuts from '../config/shortcuts.js';
|
|
13
|
+
import { marks as schemaMarks, nodes as schemaNodes } from '../config/schema.js';
|
|
14
14
|
import { alignBlocks as alignBlocksCommon, applyInlineStyle as applyInlineStyleCommon, applyLink as applyLinkCommon, canIndentAsListItem, canOutdentAsListItem, parseContent, canInsert as canInsertCommon, createTable as createTableCommon, formatBlockElements as formatBlockElementsCommon, getBlockFormats as getBlockFormatsCommon, getHtml as getHtmlCommon, getInlineStyles as getInlineStylesCommon, getMark as getMarkCommon, hasMark as hasMarkCommon, hasNode as hasNodeCommon, indentBlocks as indentBlocksCommon, setHtml as setHtmlCommon, insertNode as insertNodeCommon, isAligned as isAlignedCommon, isIndented as isIndentedCommon, toggleInlineFormat as toggleInlineFormatCommon, toggleList as toggleListCommon, indentHtml as indentHtmlCommon, convertMsLists as convertMsListsCommon, removeComments as removeCommentsCommon, removeTag as removeTagCommon, sanitize as sanitizeCommon, pasteCleanup as pasteCleanupCommon, sanitizeClassAttr as sanitizeClassAttrCommon, sanitizeStyleAttr as sanitizeStyleAttrCommon, removeAttribute as removeAttributeCommon, replaceImageSourcesFromRtf as replaceImageSourcesFromRtfCommon, textHighlight as textHighlightCommon, imageResizing as imageResizingCommon, imageResizeKey as imageResizeKeyCommon, trimWhitespace } from '@progress/kendo-editor-common';
|
|
15
15
|
import { editorPropsKey } from './props-key.js';
|
|
16
16
|
/**
|
package/dist/npm/Editor.js
CHANGED
|
@@ -52,7 +52,7 @@ var toolsSettings_1 = require("./config/toolsSettings");
|
|
|
52
52
|
|
|
53
53
|
var insertLink_1 = require("./dialogs/insertLink");
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var main_1 = require("./utils/main");
|
|
56
56
|
|
|
57
57
|
var props_key_1 = require("./utils/props-key");
|
|
58
58
|
|
|
@@ -535,7 +535,7 @@ var EditorVue2 = {
|
|
|
535
535
|
var view = this.getView();
|
|
536
536
|
|
|
537
537
|
if (view) {
|
|
538
|
-
return
|
|
538
|
+
return main_1.EditorUtils.getHtml(view.state);
|
|
539
539
|
}
|
|
540
540
|
|
|
541
541
|
return '';
|
|
@@ -544,7 +544,7 @@ var EditorVue2 = {
|
|
|
544
544
|
var view = this.getView();
|
|
545
545
|
|
|
546
546
|
if (view) {
|
|
547
|
-
|
|
547
|
+
main_1.EditorUtils.setHtml(view, value);
|
|
548
548
|
}
|
|
549
549
|
},
|
|
550
550
|
focus: function focus() {
|
|
@@ -626,7 +626,7 @@ var EditorVue2 = {
|
|
|
626
626
|
}
|
|
627
627
|
}), (0, kendo_editor_common_1.spacesFix)(), (0, kendo_editor_common_1.history)(), (0, kendo_editor_common_1.dropCursor)(), (0, kendo_editor_common_1.gapCursor)(), (0, kendo_editor_common_1.tableEditing)()];
|
|
628
628
|
|
|
629
|
-
var shortcuts = __assign(__assign({},
|
|
629
|
+
var shortcuts = __assign(__assign({}, main_1.EditorUtils.getShortcuts({
|
|
630
630
|
types: {
|
|
631
631
|
listItem: 'list_item',
|
|
632
632
|
hardBreak: 'hard_break'
|
|
@@ -661,7 +661,7 @@ var EditorVue2 = {
|
|
|
661
661
|
_c = _b.defaultContent,
|
|
662
662
|
defaultContent = _c === void 0 ? '' : _c,
|
|
663
663
|
value = _b.value;
|
|
664
|
-
var doc = value && typeof value !== 'string' ? value :
|
|
664
|
+
var doc = value && typeof value !== 'string' ? value : main_1.EditorUtils.createDocument(new kendo_editor_common_1.Schema({
|
|
665
665
|
nodes: schema_1.nodes,
|
|
666
666
|
marks: schema_1.marks
|
|
667
667
|
}), value || defaultContent, {
|
|
@@ -737,7 +737,7 @@ var EditorVue2 = {
|
|
|
737
737
|
value: doc_1,
|
|
738
738
|
|
|
739
739
|
get html() {
|
|
740
|
-
target_1.htmlOnChange =
|
|
740
|
+
target_1.htmlOnChange = main_1.EditorUtils.getHtml({
|
|
741
741
|
doc: doc_1,
|
|
742
742
|
schema: schema_2
|
|
743
743
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="prosemirror-model" />
|
|
2
2
|
import { EditorState, Plugin, Transaction, EditorView, Schema, Node } from '@progress/kendo-editor-common';
|
|
3
|
-
import { EditorUtils } from './utils';
|
|
3
|
+
import { EditorUtils } from './utils/main';
|
|
4
4
|
interface EditorEvent {
|
|
5
5
|
/**
|
|
6
6
|
* An event target.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EditorState, Transaction, EditorView } from '@progress/kendo-editor-common';
|
|
2
2
|
import { EditorToolsSettings } from './toolsSettings';
|
|
3
|
+
declare const bold: EditorToolsSettings.InlineFormatSettings, underline: EditorToolsSettings.InlineFormatSettings, italic: EditorToolsSettings.InlineFormatSettings;
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
@@ -20,3 +21,4 @@ export declare const getShortcuts: (settings?: {
|
|
|
20
21
|
underline?: EditorToolsSettings.InlineFormatOptions;
|
|
21
22
|
};
|
|
22
23
|
}) => Shortcuts;
|
|
24
|
+
export {};
|
|
@@ -21,7 +21,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
23
|
exports.EditorToolsSettings = void 0;
|
|
24
|
-
var
|
|
24
|
+
var main_1 = require("../messages/main");
|
|
25
25
|
var kendo_editor_common_1 = require("@progress/kendo-editor-common");
|
|
26
26
|
var listsTypes = __assign({}, kendo_editor_common_1.indentRules.listsTypes);
|
|
27
27
|
/**
|
|
@@ -39,61 +39,61 @@ var EditorToolsSettings;
|
|
|
39
39
|
* The object of the Bold tool settings.
|
|
40
40
|
*/
|
|
41
41
|
EditorToolsSettings.bold = __assign(__assign({}, kendo_editor_common_1.bold), { props: __assign({ icon: 'bold' }, buttonCommonProps), messages: {
|
|
42
|
-
title:
|
|
42
|
+
title: main_1.keys.bold
|
|
43
43
|
}, commandName: 'Bold' });
|
|
44
44
|
/**
|
|
45
45
|
* The object of the Italic tool settings.
|
|
46
46
|
*/
|
|
47
47
|
EditorToolsSettings.italic = __assign(__assign({}, kendo_editor_common_1.italic), { props: __assign({ icon: 'italic' }, buttonCommonProps), messages: {
|
|
48
|
-
title:
|
|
48
|
+
title: main_1.keys.italic
|
|
49
49
|
}, commandName: 'Italic' });
|
|
50
50
|
/**
|
|
51
51
|
* The object of the Underline tool settings.
|
|
52
52
|
*/
|
|
53
53
|
EditorToolsSettings.underline = __assign(__assign({}, kendo_editor_common_1.underline), { props: __assign({ icon: 'underline' }, buttonCommonProps), messages: {
|
|
54
|
-
title:
|
|
54
|
+
title: main_1.keys.underline
|
|
55
55
|
}, commandName: 'Underline' });
|
|
56
56
|
/**
|
|
57
57
|
* The object of the Strikethrough tool settings.
|
|
58
58
|
*/
|
|
59
59
|
EditorToolsSettings.strikethrough = __assign(__assign({}, kendo_editor_common_1.strikethrough), { props: __assign({ icon: 'strikethrough' }, buttonCommonProps), messages: {
|
|
60
|
-
title:
|
|
60
|
+
title: main_1.keys.strikethrough
|
|
61
61
|
}, commandName: 'Strikethrough' });
|
|
62
62
|
/**
|
|
63
63
|
* The object of the Subscript tool settings.
|
|
64
64
|
*/
|
|
65
65
|
EditorToolsSettings.subscript = __assign(__assign({}, kendo_editor_common_1.subscript), { props: __assign({ icon: 'subscript' }, buttonCommonProps), messages: {
|
|
66
|
-
title:
|
|
66
|
+
title: main_1.keys.subscript
|
|
67
67
|
}, commandName: 'Subscript' });
|
|
68
68
|
/**
|
|
69
69
|
* The object of the Superscript tool settings.
|
|
70
70
|
*/
|
|
71
71
|
EditorToolsSettings.superscript = __assign(__assign({}, kendo_editor_common_1.superscript), { props: __assign({ icon: 'superscript' }, buttonCommonProps), messages: {
|
|
72
|
-
title:
|
|
72
|
+
title: main_1.keys.superscript
|
|
73
73
|
}, commandName: 'Superscript' });
|
|
74
74
|
/**
|
|
75
75
|
* The object of the Link tool settings.
|
|
76
76
|
*/
|
|
77
77
|
EditorToolsSettings.link = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'link-horizontal' }, buttonCommonProps), messages: {
|
|
78
|
-
insertHyperlink:
|
|
79
|
-
insertHyperlinkDialogTitle:
|
|
80
|
-
insertHyperlinkAddress:
|
|
81
|
-
insertHyperlinkTitle:
|
|
82
|
-
insertHyperlinkNewWindow:
|
|
83
|
-
insertHyperlinkCancel:
|
|
84
|
-
insertHyperlinkInsert:
|
|
78
|
+
insertHyperlink: main_1.keys.insertHyperlink,
|
|
79
|
+
insertHyperlinkDialogTitle: main_1.keys.insertHyperlinkDialogTitle,
|
|
80
|
+
insertHyperlinkAddress: main_1.keys.insertHyperlinkAddress,
|
|
81
|
+
insertHyperlinkTitle: main_1.keys.insertHyperlinkTitle,
|
|
82
|
+
insertHyperlinkNewWindow: main_1.keys.insertHyperlinkNewWindow,
|
|
83
|
+
insertHyperlinkCancel: main_1.keys.insertHyperlinkCancel,
|
|
84
|
+
insertHyperlinkInsert: main_1.keys.insertHyperlinkInsert
|
|
85
85
|
}, commandName: 'Link' });
|
|
86
86
|
/**
|
|
87
87
|
* The object of the Link tool settings.
|
|
88
88
|
*/
|
|
89
89
|
EditorToolsSettings.insertFile = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'file-add' }, buttonCommonProps), messages: {
|
|
90
|
-
insertHyperlink:
|
|
91
|
-
insertHyperlinkDialogTitle:
|
|
92
|
-
insertHyperlinkAddress:
|
|
93
|
-
insertHyperlinkTitle:
|
|
90
|
+
insertHyperlink: main_1.keys.insertFile,
|
|
91
|
+
insertHyperlinkDialogTitle: main_1.keys.insertFileDialogTitle,
|
|
92
|
+
insertHyperlinkAddress: main_1.keys.insertFileAddress,
|
|
93
|
+
insertHyperlinkTitle: main_1.keys.insertFileTitle,
|
|
94
94
|
insertHyperlinkNewWindow: '',
|
|
95
|
-
insertHyperlinkCancel:
|
|
96
|
-
insertHyperlinkInsert:
|
|
95
|
+
insertHyperlinkCancel: main_1.keys.insertFileCancel,
|
|
96
|
+
insertHyperlinkInsert: main_1.keys.insertFileInsert
|
|
97
97
|
}, commandName: 'InsertFile', linkTarget: false });
|
|
98
98
|
/**
|
|
99
99
|
* The object of the InsertTable tool settings.
|
|
@@ -101,8 +101,8 @@ var EditorToolsSettings;
|
|
|
101
101
|
EditorToolsSettings.insertTable = {
|
|
102
102
|
props: __assign({ icon: 'table-insert' }, buttonCommonProps),
|
|
103
103
|
messages: {
|
|
104
|
-
createTable:
|
|
105
|
-
createTableHint:
|
|
104
|
+
createTable: main_1.keys.createTable,
|
|
105
|
+
createTableHint: main_1.keys.createTableHint
|
|
106
106
|
},
|
|
107
107
|
commandName: 'InsertTable'
|
|
108
108
|
};
|
|
@@ -113,7 +113,7 @@ var EditorToolsSettings;
|
|
|
113
113
|
command: kendo_editor_common_1.addRowBefore,
|
|
114
114
|
props: __assign({ icon: 'table-row-insert-above' }, buttonCommonProps),
|
|
115
115
|
messages: {
|
|
116
|
-
title:
|
|
116
|
+
title: main_1.keys.addRowBefore
|
|
117
117
|
},
|
|
118
118
|
commandName: 'AddRowBefore'
|
|
119
119
|
};
|
|
@@ -124,7 +124,7 @@ var EditorToolsSettings;
|
|
|
124
124
|
command: kendo_editor_common_1.addRowAfter,
|
|
125
125
|
props: __assign({ icon: 'table-row-insert-below' }, buttonCommonProps),
|
|
126
126
|
messages: {
|
|
127
|
-
title:
|
|
127
|
+
title: main_1.keys.addRowAfter
|
|
128
128
|
},
|
|
129
129
|
commandName: 'AddRowAfter'
|
|
130
130
|
};
|
|
@@ -135,7 +135,7 @@ var EditorToolsSettings;
|
|
|
135
135
|
command: kendo_editor_common_1.addColumnBefore,
|
|
136
136
|
props: __assign({ icon: 'table-column-insert-left' }, buttonCommonProps),
|
|
137
137
|
messages: {
|
|
138
|
-
title:
|
|
138
|
+
title: main_1.keys.addColumnBefore
|
|
139
139
|
},
|
|
140
140
|
commandName: 'AddColumnBefore'
|
|
141
141
|
};
|
|
@@ -146,7 +146,7 @@ var EditorToolsSettings;
|
|
|
146
146
|
command: kendo_editor_common_1.addColumnAfter,
|
|
147
147
|
props: __assign({ icon: 'table-column-insert-right' }, buttonCommonProps),
|
|
148
148
|
messages: {
|
|
149
|
-
title:
|
|
149
|
+
title: main_1.keys.addColumnAfter
|
|
150
150
|
},
|
|
151
151
|
commandName: 'AddColumnAfter'
|
|
152
152
|
};
|
|
@@ -157,7 +157,7 @@ var EditorToolsSettings;
|
|
|
157
157
|
command: kendo_editor_common_1.deleteRow,
|
|
158
158
|
props: __assign({ icon: 'table-row-delete' }, buttonCommonProps),
|
|
159
159
|
messages: {
|
|
160
|
-
title:
|
|
160
|
+
title: main_1.keys.deleteRow
|
|
161
161
|
},
|
|
162
162
|
commandName: 'DeleteRow'
|
|
163
163
|
};
|
|
@@ -168,7 +168,7 @@ var EditorToolsSettings;
|
|
|
168
168
|
command: kendo_editor_common_1.deleteColumn,
|
|
169
169
|
props: __assign({ icon: 'table-column-delete' }, buttonCommonProps),
|
|
170
170
|
messages: {
|
|
171
|
-
title:
|
|
171
|
+
title: main_1.keys.deleteColumn
|
|
172
172
|
},
|
|
173
173
|
commandName: 'DeleteColumn'
|
|
174
174
|
};
|
|
@@ -179,7 +179,7 @@ var EditorToolsSettings;
|
|
|
179
179
|
command: kendo_editor_common_1.deleteTable,
|
|
180
180
|
props: __assign({ icon: 'table-delete' }, buttonCommonProps),
|
|
181
181
|
messages: {
|
|
182
|
-
title:
|
|
182
|
+
title: main_1.keys.deleteTable
|
|
183
183
|
},
|
|
184
184
|
commandName: 'DeleteTable'
|
|
185
185
|
};
|
|
@@ -190,7 +190,7 @@ var EditorToolsSettings;
|
|
|
190
190
|
command: kendo_editor_common_1.mergeCells,
|
|
191
191
|
props: __assign({ icon: 'cells-merge' }, buttonCommonProps),
|
|
192
192
|
messages: {
|
|
193
|
-
title:
|
|
193
|
+
title: main_1.keys.mergeCells
|
|
194
194
|
},
|
|
195
195
|
commandName: 'MergeCells'
|
|
196
196
|
};
|
|
@@ -201,7 +201,7 @@ var EditorToolsSettings;
|
|
|
201
201
|
command: kendo_editor_common_1.splitCell,
|
|
202
202
|
props: __assign({ icon: 'cell-split-horizontally' }, buttonCommonProps),
|
|
203
203
|
messages: {
|
|
204
|
-
title:
|
|
204
|
+
title: main_1.keys.splitCell
|
|
205
205
|
},
|
|
206
206
|
commandName: 'SplitCell'
|
|
207
207
|
};
|
|
@@ -211,7 +211,7 @@ var EditorToolsSettings;
|
|
|
211
211
|
EditorToolsSettings.print = {
|
|
212
212
|
props: __assign({ icon: 'print' }, buttonCommonProps),
|
|
213
213
|
messages: {
|
|
214
|
-
title:
|
|
214
|
+
title: main_1.keys.print
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
217
|
/**
|
|
@@ -220,7 +220,7 @@ var EditorToolsSettings;
|
|
|
220
220
|
EditorToolsSettings.selectAll = {
|
|
221
221
|
props: __assign({ icon: 'select-all' }, buttonCommonProps),
|
|
222
222
|
messages: {
|
|
223
|
-
title:
|
|
223
|
+
title: main_1.keys.selectAll
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
/**
|
|
@@ -229,7 +229,7 @@ var EditorToolsSettings;
|
|
|
229
229
|
EditorToolsSettings.pdf = {
|
|
230
230
|
props: __assign({ icon: 'pdf' }, buttonCommonProps),
|
|
231
231
|
messages: {
|
|
232
|
-
title:
|
|
232
|
+
title: main_1.keys.pdf
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
/**
|
|
@@ -252,7 +252,7 @@ var EditorToolsSettings;
|
|
|
252
252
|
EditorToolsSettings.cleanFormatting = {
|
|
253
253
|
props: __assign({ icon: 'clear-css' }, buttonCommonProps),
|
|
254
254
|
messages: {
|
|
255
|
-
title:
|
|
255
|
+
title: main_1.keys.cleanFormatting
|
|
256
256
|
},
|
|
257
257
|
commandName: 'CleanFormatting'
|
|
258
258
|
};
|
|
@@ -263,15 +263,15 @@ var EditorToolsSettings;
|
|
|
263
263
|
node: 'image',
|
|
264
264
|
props: __assign({ icon: 'image' }, buttonCommonProps),
|
|
265
265
|
messages: {
|
|
266
|
-
insertImage:
|
|
267
|
-
insertImageDialogTitle:
|
|
268
|
-
insertImageAddress:
|
|
269
|
-
insertImageTitle:
|
|
270
|
-
insertImageAltText:
|
|
271
|
-
insertImageWidth:
|
|
272
|
-
insertImageHeight:
|
|
273
|
-
insertImageCancel:
|
|
274
|
-
insertImageInsert:
|
|
266
|
+
insertImage: main_1.keys.insertImage,
|
|
267
|
+
insertImageDialogTitle: main_1.keys.insertImageDialogTitle,
|
|
268
|
+
insertImageAddress: main_1.keys.insertImageAddress,
|
|
269
|
+
insertImageTitle: main_1.keys.insertImageTitle,
|
|
270
|
+
insertImageAltText: main_1.keys.insertImageAltText,
|
|
271
|
+
insertImageWidth: main_1.keys.insertImageWidth,
|
|
272
|
+
insertImageHeight: main_1.keys.insertImageHeight,
|
|
273
|
+
insertImageCancel: main_1.keys.insertImageCancel,
|
|
274
|
+
insertImageInsert: main_1.keys.insertImageInsert
|
|
275
275
|
},
|
|
276
276
|
commandName: 'InsertImage'
|
|
277
277
|
};
|
|
@@ -281,10 +281,10 @@ var EditorToolsSettings;
|
|
|
281
281
|
EditorToolsSettings.viewHtml = {
|
|
282
282
|
props: __assign({ icon: 'html' }, buttonCommonProps),
|
|
283
283
|
messages: {
|
|
284
|
-
viewHtml:
|
|
285
|
-
viewHtmlDialogTitle:
|
|
286
|
-
viewHtmlCancel:
|
|
287
|
-
viewHtmlUpdate:
|
|
284
|
+
viewHtml: main_1.keys.viewHtml,
|
|
285
|
+
viewHtmlDialogTitle: main_1.keys.viewHtmlDialogTitle,
|
|
286
|
+
viewHtmlCancel: main_1.keys.viewHtmlCancel,
|
|
287
|
+
viewHtmlUpdate: main_1.keys.viewHtmlUpdate
|
|
288
288
|
},
|
|
289
289
|
commandName: 'SetContent'
|
|
290
290
|
};
|
|
@@ -294,28 +294,28 @@ var EditorToolsSettings;
|
|
|
294
294
|
EditorToolsSettings.findAndReplace = {
|
|
295
295
|
props: __assign({ icon: 'find' }, buttonCommonProps),
|
|
296
296
|
messages: {
|
|
297
|
-
findReplaceToolTitle:
|
|
298
|
-
findReplaceDialogTitle:
|
|
299
|
-
findReplaceTabFind:
|
|
300
|
-
findReplaceTabReplace:
|
|
301
|
-
findReplaceFindWhat:
|
|
302
|
-
findReplaceReplaceWith:
|
|
303
|
-
findReplaceReplace:
|
|
304
|
-
findReplaceReplaceAll:
|
|
305
|
-
findReplaceMatchCase:
|
|
306
|
-
findReplaceMatchWord:
|
|
307
|
-
findReplaceMatchCyclic:
|
|
308
|
-
findReplaceUseRegExp:
|
|
309
|
-
findReplacePrevMatch:
|
|
310
|
-
findReplaceNextMatch:
|
|
311
|
-
findReplaceMatches:
|
|
297
|
+
findReplaceToolTitle: main_1.keys.findReplaceToolTitle,
|
|
298
|
+
findReplaceDialogTitle: main_1.keys.findReplaceDialogTitle,
|
|
299
|
+
findReplaceTabFind: main_1.keys.findReplaceTabFind,
|
|
300
|
+
findReplaceTabReplace: main_1.keys.findReplaceTabReplace,
|
|
301
|
+
findReplaceFindWhat: main_1.keys.findReplaceFindWhat,
|
|
302
|
+
findReplaceReplaceWith: main_1.keys.findReplaceReplaceWith,
|
|
303
|
+
findReplaceReplace: main_1.keys.findReplaceReplace,
|
|
304
|
+
findReplaceReplaceAll: main_1.keys.findReplaceReplaceAll,
|
|
305
|
+
findReplaceMatchCase: main_1.keys.findReplaceMatchCase,
|
|
306
|
+
findReplaceMatchWord: main_1.keys.findReplaceMatchWord,
|
|
307
|
+
findReplaceMatchCyclic: main_1.keys.findReplaceMatchCyclic,
|
|
308
|
+
findReplaceUseRegExp: main_1.keys.findReplaceUseRegExp,
|
|
309
|
+
findReplacePrevMatch: main_1.keys.findReplacePrevMatch,
|
|
310
|
+
findReplaceNextMatch: main_1.keys.findReplaceNextMatch,
|
|
311
|
+
findReplaceMatches: main_1.keys.findReplaceMatches
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
/**
|
|
315
315
|
* The object of the Unlink tool settings.
|
|
316
316
|
*/
|
|
317
317
|
EditorToolsSettings.unlink = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'unlink-horizontal' }, buttonCommonProps), messages: {
|
|
318
|
-
title:
|
|
318
|
+
title: main_1.keys.unlink
|
|
319
319
|
}, commandName: 'Unlink' });
|
|
320
320
|
/**
|
|
321
321
|
* The object of the Undo tool settings.
|
|
@@ -324,7 +324,7 @@ var EditorToolsSettings;
|
|
|
324
324
|
command: kendo_editor_common_1.undo,
|
|
325
325
|
props: __assign({ icon: 'undo' }, buttonCommonProps),
|
|
326
326
|
messages: {
|
|
327
|
-
title:
|
|
327
|
+
title: main_1.keys.undo
|
|
328
328
|
},
|
|
329
329
|
commandName: 'Undo'
|
|
330
330
|
};
|
|
@@ -335,7 +335,7 @@ var EditorToolsSettings;
|
|
|
335
335
|
command: kendo_editor_common_1.redo,
|
|
336
336
|
props: __assign({ icon: 'redo' }, buttonCommonProps),
|
|
337
337
|
messages: {
|
|
338
|
-
title:
|
|
338
|
+
title: main_1.keys.redo
|
|
339
339
|
},
|
|
340
340
|
commandName: 'Redo'
|
|
341
341
|
};
|
|
@@ -344,7 +344,7 @@ var EditorToolsSettings;
|
|
|
344
344
|
*/
|
|
345
345
|
EditorToolsSettings.fontSize = {
|
|
346
346
|
style: 'font-size',
|
|
347
|
-
defaultItem: { text:
|
|
347
|
+
defaultItem: { text: main_1.messages[main_1.keys.fontSize], value: '', localizationKey: main_1.keys.fontSize },
|
|
348
348
|
items: [
|
|
349
349
|
{ text: '1 (8pt)', value: 'xx-small' },
|
|
350
350
|
{ text: '2 (10pt)', value: 'x-small' },
|
|
@@ -361,7 +361,7 @@ var EditorToolsSettings;
|
|
|
361
361
|
*/
|
|
362
362
|
EditorToolsSettings.fontName = {
|
|
363
363
|
style: 'font-family',
|
|
364
|
-
defaultItem: { text:
|
|
364
|
+
defaultItem: { text: main_1.messages[main_1.keys.fontName], value: '', localizationKey: main_1.keys.fontName },
|
|
365
365
|
items: [
|
|
366
366
|
{ text: 'Arial', value: 'Arial, Helvetica, sans-serif',
|
|
367
367
|
style: { fontFamily: 'Arial, Helvetica, sans-serif' } },
|
|
@@ -388,7 +388,7 @@ var EditorToolsSettings;
|
|
|
388
388
|
* The object of the FormatBlock tool settings.
|
|
389
389
|
*/
|
|
390
390
|
EditorToolsSettings.formatBlock = {
|
|
391
|
-
defaultItem: { text:
|
|
391
|
+
defaultItem: { text: main_1.messages[main_1.keys.format], value: '', localizationKey: main_1.keys.format },
|
|
392
392
|
items: [
|
|
393
393
|
{ text: 'Paragraph', value: 'p', style: { display: 'block', marginLeft: 0 } },
|
|
394
394
|
{ text: 'Heading 1', value: 'h1', style: { display: 'block', fontSize: '2em', marginLeft: 0, fontWeight: 'bold' } },
|
|
@@ -408,7 +408,7 @@ var EditorToolsSettings;
|
|
|
408
408
|
colorPickerProps: {
|
|
409
409
|
icon: 'foreground-color',
|
|
410
410
|
view: 'palette',
|
|
411
|
-
title:
|
|
411
|
+
title: main_1.keys.foregroundColor
|
|
412
412
|
},
|
|
413
413
|
commandName: 'ForeColor'
|
|
414
414
|
};
|
|
@@ -420,7 +420,7 @@ var EditorToolsSettings;
|
|
|
420
420
|
colorPickerProps: {
|
|
421
421
|
icon: 'background',
|
|
422
422
|
view: 'palette',
|
|
423
|
-
title:
|
|
423
|
+
title: main_1.keys.backgroundColor
|
|
424
424
|
},
|
|
425
425
|
commandName: 'BackColor'
|
|
426
426
|
};
|
|
@@ -431,7 +431,7 @@ var EditorToolsSettings;
|
|
|
431
431
|
actions: __spreadArray([], kendo_editor_common_1.alignLeftRules, true),
|
|
432
432
|
props: __assign({ icon: 'align-left' }, buttonCommonProps),
|
|
433
433
|
messages: {
|
|
434
|
-
title:
|
|
434
|
+
title: main_1.keys.alignLeft
|
|
435
435
|
},
|
|
436
436
|
commandName: 'AlignLeft'
|
|
437
437
|
};
|
|
@@ -442,7 +442,7 @@ var EditorToolsSettings;
|
|
|
442
442
|
actions: __spreadArray([], kendo_editor_common_1.alignRightRules, true),
|
|
443
443
|
props: __assign({ icon: 'align-right' }, buttonCommonProps),
|
|
444
444
|
messages: {
|
|
445
|
-
title:
|
|
445
|
+
title: main_1.keys.alignRight
|
|
446
446
|
},
|
|
447
447
|
commandName: 'AlignRight'
|
|
448
448
|
};
|
|
@@ -453,7 +453,7 @@ var EditorToolsSettings;
|
|
|
453
453
|
actions: __spreadArray([], kendo_editor_common_1.alignCenterRules, true),
|
|
454
454
|
props: __assign({ icon: 'align-center' }, buttonCommonProps),
|
|
455
455
|
messages: {
|
|
456
|
-
title:
|
|
456
|
+
title: main_1.keys.alignCenter
|
|
457
457
|
},
|
|
458
458
|
commandName: 'AlignCenter'
|
|
459
459
|
};
|
|
@@ -464,7 +464,7 @@ var EditorToolsSettings;
|
|
|
464
464
|
actions: __spreadArray([], kendo_editor_common_1.alignJustifyRules, true),
|
|
465
465
|
props: __assign({ icon: 'align-justify' }, buttonCommonProps),
|
|
466
466
|
messages: {
|
|
467
|
-
title:
|
|
467
|
+
title: main_1.keys.alignJustify
|
|
468
468
|
},
|
|
469
469
|
commandName: 'AlignJustify'
|
|
470
470
|
};
|
|
@@ -485,7 +485,7 @@ var EditorToolsSettings;
|
|
|
485
485
|
listsTypes: listsTypes,
|
|
486
486
|
props: __assign({ icon: 'indent-increase' }, buttonCommonProps),
|
|
487
487
|
messages: {
|
|
488
|
-
title:
|
|
488
|
+
title: main_1.keys.indent
|
|
489
489
|
},
|
|
490
490
|
commandName: 'Indent'
|
|
491
491
|
};
|
|
@@ -497,7 +497,7 @@ var EditorToolsSettings;
|
|
|
497
497
|
listsTypes: listsTypes,
|
|
498
498
|
props: __assign({ icon: 'indent-decrease' }, buttonCommonProps),
|
|
499
499
|
messages: {
|
|
500
|
-
title:
|
|
500
|
+
title: main_1.keys.outdent
|
|
501
501
|
},
|
|
502
502
|
commandName: 'Outdent'
|
|
503
503
|
};
|
|
@@ -508,7 +508,7 @@ var EditorToolsSettings;
|
|
|
508
508
|
listType: listsTypes.orderedList,
|
|
509
509
|
props: __assign({ icon: 'list-ordered' }, buttonCommonProps),
|
|
510
510
|
messages: {
|
|
511
|
-
title:
|
|
511
|
+
title: main_1.keys.orderedList
|
|
512
512
|
},
|
|
513
513
|
commandName: 'OrderedList',
|
|
514
514
|
types: __assign({}, listsTypes)
|
|
@@ -520,7 +520,7 @@ var EditorToolsSettings;
|
|
|
520
520
|
listType: listsTypes.bulletList,
|
|
521
521
|
props: __assign({ icon: 'list-unordered' }, buttonCommonProps),
|
|
522
522
|
messages: {
|
|
523
|
-
title:
|
|
523
|
+
title: main_1.keys.bulletList
|
|
524
524
|
},
|
|
525
525
|
commandName: 'UnorderedList',
|
|
526
526
|
types: __assign({}, listsTypes)
|