@progress/kendo-angular-editor 2.5.0-dev.202111161123 → 2.5.0-dev.202111231749
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-angular-editor.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/common/error-messages.js +2 -1
- package/dist/es/config/command-icons.js +4 -2
- package/dist/es/config/commands.js +32 -31
- package/dist/es/editor-toolbar-state.js +20 -2
- package/dist/es/editor.component.js +4 -3
- package/dist/es/editor.module.js +7 -1
- package/dist/es/index.js +2 -0
- package/dist/es/localization/messages.js +8 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/print/editor-print-button.directive.js +67 -0
- package/dist/es/tools/select-all/select-all-button.directive.js +48 -0
- package/dist/es/tools/shared/editor-command-base.js +7 -5
- package/dist/es2015/common/commands.d.ts +5 -1
- package/dist/es2015/common/error-messages.js +2 -1
- package/dist/es2015/config/command-icons.d.ts +2 -2
- package/dist/es2015/config/command-icons.js +4 -2
- package/dist/es2015/config/commands.js +31 -30
- package/dist/es2015/editor-toolbar-state.js +20 -2
- package/dist/es2015/editor.component.d.ts +5 -0
- package/dist/es2015/editor.component.js +7 -2
- package/dist/es2015/editor.module.js +7 -1
- package/dist/es2015/index.d.ts +2 -0
- package/dist/es2015/index.js +2 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/localization/messages.d.ts +8 -0
- package/dist/es2015/localization/messages.js +8 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/tools/print/editor-print-button.directive.d.ts +33 -0
- package/dist/es2015/tools/print/editor-print-button.directive.js +64 -0
- package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +29 -0
- package/dist/es2015/tools/select-all/select-all-button.directive.js +46 -0
- package/dist/es2015/tools/shared/editor-command-base.d.ts +4 -3
- package/dist/es2015/tools/shared/editor-command-base.js +6 -4
- package/dist/es2015/tools/shared/editor-command-button.d.ts +3 -3
- package/dist/fesm2015/index.js +173 -43
- package/dist/fesm5/index.js +177 -46
- package/dist/npm/common/error-messages.js +2 -1
- package/dist/npm/config/command-icons.js +4 -2
- package/dist/npm/config/commands.js +33 -31
- package/dist/npm/editor-toolbar-state.js +20 -2
- package/dist/npm/editor.component.js +4 -3
- package/dist/npm/editor.module.js +7 -1
- package/dist/npm/index.js +4 -0
- package/dist/npm/localization/messages.js +8 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/print/editor-print-button.directive.js +69 -0
- package/dist/npm/tools/select-all/select-all-button.directive.js +50 -0
- package/dist/npm/tools/shared/editor-command-base.js +7 -5
- package/dist/systemjs/kendo-angular-editor.js +1 -1
- package/package.json +1 -1
package/dist/fesm5/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { take, filter, auditTime, map, concatMap, takeUntil } from 'rxjs/operato
|
|
|
10
10
|
import { ToolBarComponent, ToolBarToolComponent, ToolBarButtonComponent, ToolBarModule } from '@progress/kendo-angular-toolbar';
|
|
11
11
|
import { DialogRef, DialogContentBase, DialogService, DialogModule } from '@progress/kendo-angular-dialog';
|
|
12
12
|
import { isDocumentAvailable, guid, KendoInput, Keys } from '@progress/kendo-angular-common';
|
|
13
|
-
import { nodes, Schema, marks, SelectionRange, TextSelection, Fragment, Slice, Selection, NodeSelection, insertNode, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, isAligned, alignCenterRules, alignBlocks, alignRemoveRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, getActiveMarks, expandSelection, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, getNodeFromSelection, getMark, getSelectionText, parseContent, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, placeholder, EditorState, EditorView, hasSameMarkup, pasteCleanup, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr } from '@progress/kendo-editor-common';
|
|
13
|
+
import { nodes, Schema, marks, SelectionRange, TextSelection, Fragment, Slice, Selection, NodeSelection, insertNode, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, selectAll, isAligned, alignCenterRules, alignBlocks, alignRemoveRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, getActiveMarks, expandSelection, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, getNodeFromSelection, getMark, getSelectionText, parseContent, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, placeholder, EditorState, EditorView, hasSameMarkup, pasteCleanup, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr } from '@progress/kendo-editor-common';
|
|
14
14
|
export { Schema, EditorState, Plugin, PluginKey, Transaction, EditorView, Decoration, DecorationSet, NodeType, Node, MarkType, Mark, InputRule, inputRules, wrappingInputRule, textblockTypeInputRule, keymap, baseKeymap, history, dropCursor, gapCursor, tableNodes, getSelectionText } from '@progress/kendo-editor-common';
|
|
15
15
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
16
16
|
import { L10N_PREFIX, RTL, MessageService, LocalizationService, ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
@@ -27,7 +27,7 @@ var packageMetadata = {
|
|
|
27
27
|
name: '@progress/kendo-angular-editor',
|
|
28
28
|
productName: 'Kendo UI for Angular',
|
|
29
29
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
30
|
-
publishDate:
|
|
30
|
+
publishDate: 1637689470,
|
|
31
31
|
version: '',
|
|
32
32
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
33
33
|
};
|
|
@@ -1651,7 +1651,7 @@ var deleteTableElement = function (selector) { return function (state, dispatch)
|
|
|
1651
1651
|
var deleteTable$1 = deleteTableElement(isTable);
|
|
1652
1652
|
|
|
1653
1653
|
var alignRemove = function (state, dispatch) { return alignBlocks(alignRemoveRules)(state, dispatch); };
|
|
1654
|
-
var ɵ1$5 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, bold, { applyToWord: applyToWord })); }, ɵ2$4 = function (options) { return cleanFormatting(options); }, ɵ3$4 = function (attrs) { return expandToWordWrap(applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ4$2 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ5$2 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }); }, ɵ6$1 = function (attrs) { return expandToWordWrap(applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }); }, ɵ7$1 = function (text) { return insertText(text); }, ɵ8$1 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, italic, { applyToWord: applyToWord })); }, ɵ9$1 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, strikethrough, { applyToWord: applyToWord })); }, ɵ10 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, subscript, { applyToWord: applyToWord })); }, ɵ11 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, superscript, { applyToWord: applyToWord })); }, ɵ12 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, underline, { applyToWord: applyToWord })); }, ɵ13 = function () { return removeLink(link); }, ɵ14 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'color', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ15 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'background-color', value: attrs.value, applyToWord: attrs.applyToWord }); };
|
|
1654
|
+
var ɵ1$5 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, bold, { applyToWord: applyToWord })); }, ɵ2$4 = function (options) { return cleanFormatting(options); }, ɵ3$4 = function (attrs) { return expandToWordWrap(applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ4$2 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ5$2 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }); }, ɵ6$1 = function (attrs) { return expandToWordWrap(applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }); }, ɵ7$1 = function (text) { return insertText(text); }, ɵ8$1 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, italic, { applyToWord: applyToWord })); }, ɵ9$1 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, strikethrough, { applyToWord: applyToWord })); }, ɵ10 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, subscript, { applyToWord: applyToWord })); }, ɵ11 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, superscript, { applyToWord: applyToWord })); }, ɵ12 = function (applyToWord) { return expandToWordWrap(toggleInlineFormat, __assign({}, underline, { applyToWord: applyToWord })); }, ɵ13 = function () { return removeLink(link); }, ɵ14 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'color', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ15 = function (attrs) { return expandToWordWrap(applyInlineStyle, { style: 'background-color', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ16 = function () { return function (state, dispatch) { return selectAll(state, dispatch); }; };
|
|
1655
1655
|
var inlineCommand = {
|
|
1656
1656
|
bold: ɵ1$5,
|
|
1657
1657
|
cleanFormatting: ɵ2$4,
|
|
@@ -1667,42 +1667,43 @@ var inlineCommand = {
|
|
|
1667
1667
|
underline: ɵ12,
|
|
1668
1668
|
unlink: ɵ13,
|
|
1669
1669
|
foreColor: ɵ14,
|
|
1670
|
-
backColor: ɵ15
|
|
1670
|
+
backColor: ɵ15,
|
|
1671
|
+
selectAll: ɵ16
|
|
1671
1672
|
};
|
|
1672
|
-
var ɵ
|
|
1673
|
+
var ɵ17 = function () { return function (state, dispatch) { return isAligned(state, alignCenterRules) ? alignRemove(state, dispatch) : alignBlocks(alignCenterRules)(state, dispatch); }; }, ɵ18 = function () { return function (state, dispatch) { return isAligned(state, alignJustifyRules) ? alignRemove(state, dispatch) : alignBlocks(alignJustifyRules)(state, dispatch); }; }, ɵ19 = function () { return function (state, dispatch) { return isAligned(state, alignLeftRules) ? alignRemove(state, dispatch) : alignBlocks(alignLeftRules)(state, dispatch); }; }, ɵ20 = function () { return function (state, dispatch) { return isAligned(state, alignRightRules) ? alignRemove(state, dispatch) : alignBlocks(alignRightRules)(state, dispatch); }; }, ɵ21 = function (formatAttr) { return formatBlockElements(formatAttr.tag); }, ɵ22 = function () { return getHtml; }, ɵ23 = function () { return indent; }, ɵ24 = function (attrs) { return insertImage(attrs); }, ɵ25 = function () { return toggleOrderedList; }, ɵ26 = function () { return toggleUnorderedList; }, ɵ27 = function () { return outdent; }, ɵ28 = function () { return redo; }, ɵ29 = function (_a) {
|
|
1673
1674
|
var content = _a.content, parseOptions = _a.parseOptions;
|
|
1674
1675
|
return setHtml(content, 'setHTML', parseOptions);
|
|
1675
|
-
}, ɵ
|
|
1676
|
+
}, ɵ30 = function () { return undo; };
|
|
1676
1677
|
var blockCommand = {
|
|
1677
|
-
alignCenter: ɵ
|
|
1678
|
-
alignJustify: ɵ
|
|
1679
|
-
alignLeft: ɵ
|
|
1680
|
-
alignRight: ɵ
|
|
1681
|
-
format: ɵ
|
|
1682
|
-
getHTML: ɵ
|
|
1683
|
-
indent: ɵ
|
|
1684
|
-
insertImage: ɵ
|
|
1678
|
+
alignCenter: ɵ17,
|
|
1679
|
+
alignJustify: ɵ18,
|
|
1680
|
+
alignLeft: ɵ19,
|
|
1681
|
+
alignRight: ɵ20,
|
|
1682
|
+
format: ɵ21,
|
|
1683
|
+
getHTML: ɵ22,
|
|
1684
|
+
indent: ɵ23,
|
|
1685
|
+
insertImage: ɵ24,
|
|
1685
1686
|
// think about changing the command name.
|
|
1686
|
-
insertOrderedList: ɵ
|
|
1687
|
+
insertOrderedList: ɵ25,
|
|
1687
1688
|
// think about changing the command name.
|
|
1688
|
-
insertUnorderedList: ɵ
|
|
1689
|
-
outdent: ɵ
|
|
1690
|
-
redo: ɵ
|
|
1691
|
-
setHTML: ɵ
|
|
1692
|
-
undo: ɵ
|
|
1689
|
+
insertUnorderedList: ɵ26,
|
|
1690
|
+
outdent: ɵ27,
|
|
1691
|
+
redo: ɵ28,
|
|
1692
|
+
setHTML: ɵ29,
|
|
1693
|
+
undo: ɵ30
|
|
1693
1694
|
};
|
|
1694
|
-
var ɵ
|
|
1695
|
+
var ɵ31 = function (attr) { return insertTable(attr); }, ɵ32 = function () { return addColumnBefore$1; }, ɵ33 = function () { return addColumnAfter$1; }, ɵ34 = function () { return addRowBefore$1; }, ɵ35 = function () { return addRowAfter$1; }, ɵ36 = function () { return deleteRow$1; }, ɵ37 = function () { return deleteColumn$1; }, ɵ38 = function () { return mergeCells$1; }, ɵ39 = function () { return splitCell$1; }, ɵ40 = function () { return deleteTable$1; };
|
|
1695
1696
|
var tableCommand = {
|
|
1696
|
-
insertTable: ɵ
|
|
1697
|
-
addColumnBefore: ɵ
|
|
1698
|
-
addColumnAfter: ɵ
|
|
1699
|
-
addRowBefore: ɵ
|
|
1700
|
-
addRowAfter: ɵ
|
|
1701
|
-
deleteRow: ɵ
|
|
1702
|
-
deleteColumn: ɵ
|
|
1703
|
-
mergeCells: ɵ
|
|
1704
|
-
splitCell: ɵ
|
|
1705
|
-
deleteTable: ɵ
|
|
1697
|
+
insertTable: ɵ31,
|
|
1698
|
+
addColumnBefore: ɵ32,
|
|
1699
|
+
addColumnAfter: ɵ33,
|
|
1700
|
+
addRowBefore: ɵ34,
|
|
1701
|
+
addRowAfter: ɵ35,
|
|
1702
|
+
deleteRow: ɵ36,
|
|
1703
|
+
deleteColumn: ɵ37,
|
|
1704
|
+
mergeCells: ɵ38,
|
|
1705
|
+
splitCell: ɵ39,
|
|
1706
|
+
deleteTable: ɵ40
|
|
1706
1707
|
};
|
|
1707
1708
|
/**
|
|
1708
1709
|
* @hidden
|
|
@@ -1769,6 +1770,10 @@ var getToolbarState = function (state, options) { return ({
|
|
|
1769
1770
|
selected: false,
|
|
1770
1771
|
disabled: !redo(state)
|
|
1771
1772
|
},
|
|
1773
|
+
selectAll: {
|
|
1774
|
+
selected: false,
|
|
1775
|
+
disabled: false
|
|
1776
|
+
},
|
|
1772
1777
|
strikethrough: {
|
|
1773
1778
|
selected: hasMark(state, strikethrough),
|
|
1774
1779
|
disabled: false
|
|
@@ -1818,6 +1823,12 @@ var getToolbarState = function (state, options) { return ({
|
|
|
1818
1823
|
selected: false,
|
|
1819
1824
|
disabled: false
|
|
1820
1825
|
},
|
|
1826
|
+
// print
|
|
1827
|
+
print: {
|
|
1828
|
+
selected: false,
|
|
1829
|
+
disabled: false
|
|
1830
|
+
},
|
|
1831
|
+
// table
|
|
1821
1832
|
insertTable: {
|
|
1822
1833
|
selected: false,
|
|
1823
1834
|
disabled: false
|
|
@@ -1890,6 +1901,8 @@ var initialToolBarState = {
|
|
|
1890
1901
|
//history
|
|
1891
1902
|
redo: { selected: false, disabled: true },
|
|
1892
1903
|
undo: { selected: false, disabled: true },
|
|
1904
|
+
// print
|
|
1905
|
+
print: { selected: false, disabled: false },
|
|
1893
1906
|
//dialogs
|
|
1894
1907
|
createLink: { selected: false, disabled: true },
|
|
1895
1908
|
insertFile: { selected: false, disabled: true },
|
|
@@ -1905,7 +1918,9 @@ var initialToolBarState = {
|
|
|
1905
1918
|
deleteColumn: { selected: false, disabled: true },
|
|
1906
1919
|
mergeCells: { selected: false, disabled: true },
|
|
1907
1920
|
splitCell: { selected: false, disabled: true },
|
|
1908
|
-
deleteTable: { selected: false, disabled: true }
|
|
1921
|
+
deleteTable: { selected: false, disabled: true },
|
|
1922
|
+
// select all
|
|
1923
|
+
selectAll: { selected: false, disabled: false }
|
|
1909
1924
|
};
|
|
1910
1925
|
/**
|
|
1911
1926
|
* @hidden
|
|
@@ -1938,6 +1953,8 @@ var disabledToolBarState = {
|
|
|
1938
1953
|
//history
|
|
1939
1954
|
redo: { selected: false, disabled: true },
|
|
1940
1955
|
undo: { selected: false, disabled: true },
|
|
1956
|
+
// print
|
|
1957
|
+
print: { selected: false, disabled: true },
|
|
1941
1958
|
//dialogs
|
|
1942
1959
|
createLink: { selected: false, disabled: true },
|
|
1943
1960
|
insertFile: { selected: false, disabled: true },
|
|
@@ -1953,7 +1970,9 @@ var disabledToolBarState = {
|
|
|
1953
1970
|
deleteColumn: { selected: false, disabled: true },
|
|
1954
1971
|
mergeCells: { selected: false, disabled: true },
|
|
1955
1972
|
splitCell: { selected: false, disabled: true },
|
|
1956
|
-
deleteTable: { selected: false, disabled: true }
|
|
1973
|
+
deleteTable: { selected: false, disabled: true },
|
|
1974
|
+
// select all
|
|
1975
|
+
selectAll: { selected: false, disabled: true }
|
|
1957
1976
|
};
|
|
1958
1977
|
|
|
1959
1978
|
/**
|
|
@@ -2264,7 +2283,8 @@ var EditorErrorMessages = {
|
|
|
2264
2283
|
setSchemaOnce: 'The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/',
|
|
2265
2284
|
pluginsCallbackType: ɵ0$6,
|
|
2266
2285
|
setPluginsOnce: 'The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/',
|
|
2267
|
-
setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/'
|
|
2286
|
+
setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/',
|
|
2287
|
+
printTool: 'The Print tool and functionality are supported only in iframe mode. See https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorPrintButtonDirective/'
|
|
2268
2288
|
};
|
|
2269
2289
|
|
|
2270
2290
|
var EMPTY_PARAGRAPH = '<p></p>';
|
|
@@ -2306,6 +2326,7 @@ var EditorComponent = /** @class */ (function () {
|
|
|
2306
2326
|
/**
|
|
2307
2327
|
* If set to `false`, the Editor will run in style non-encapsulated mode. This means
|
|
2308
2328
|
* that the styles of the page will be persisted in the Editor and its content will be affected by them.
|
|
2329
|
+
* @default true
|
|
2309
2330
|
*/
|
|
2310
2331
|
this.iframe = true;
|
|
2311
2332
|
/**
|
|
@@ -2802,7 +2823,6 @@ var EditorComponent = /** @class */ (function () {
|
|
|
2802
2823
|
* Manually focus the Editor.
|
|
2803
2824
|
*/
|
|
2804
2825
|
EditorComponent.prototype.focus = function () {
|
|
2805
|
-
// this.focusChangedProgrammatically = true;
|
|
2806
2826
|
this.focusChangedProgrammatically = true;
|
|
2807
2827
|
this._view.focus();
|
|
2808
2828
|
this.focusChangedProgrammatically = false;
|
|
@@ -2974,8 +2994,9 @@ var EditorComponent = /** @class */ (function () {
|
|
|
2974
2994
|
if (_this.readonly) {
|
|
2975
2995
|
contentAreaClasslist_1.add('k-state-focused');
|
|
2976
2996
|
}
|
|
2977
|
-
if (!_this.focusChangedProgrammatically) {
|
|
2997
|
+
if (!_this.focusChangedProgrammatically || _this.shouldEmitFocus) {
|
|
2978
2998
|
_this.ngZone.run(function () { return _this.onFocus.emit(); });
|
|
2999
|
+
_this.shouldEmitFocus = false;
|
|
2979
3000
|
}
|
|
2980
3001
|
}));
|
|
2981
3002
|
this.subs.add(fromEvent(containerElement, 'focusout')
|
|
@@ -3220,7 +3241,7 @@ var EditorComponent = /** @class */ (function () {
|
|
|
3220
3241
|
}
|
|
3221
3242
|
],
|
|
3222
3243
|
/* tslint:disable:max-line-length */
|
|
3223
|
-
template: "\n <ng-container\n kendoEditorLocalizedMessages\n i18n-alignCenter=\"kendo.editor.alignCenter|The title of the tool that aligns text in the center.\"\n alignCenter=\"Center text\"\n i18n-alignJustify=\"kendo.editor.alignJustify|The title of the tool that justifies text both left and right.\"\n alignJustify=\"Justify\"\n i18n-alignLeft=\"kendo.editor.alignLeft|The title of the tool that aligns text on the left.\"\n alignLeft=\"Align text left\"\n i18n-alignRight=\"kendo.editor.alignRight|The title of the tool that aligns text on the right.\"\n alignRight=\"Align text right\"\n i18n-backColor=\"kendo.editor.backColor|The title of the tool that changes the text background color.\"\n backColor=\"Background color\"\n i18n-bold=\"kendo.editor.bold|The title of the tool that makes text bold.\"\n bold=\"Bold\"\n i18n-cleanFormatting=\"kendo.editor.cleanFormatting|The title of the Clean Formatting tool.\"\n cleanFormatting=\"Clean formatting\"\n i18n-createLink=\"kendo.editor.createLink|The title of the tool that creates hyperlinks.\"\n createLink=\"Insert link\"\n i18n-dialogApply=\"kendo.editor.dialogApply|The label of the **Apply** button in all editor dialogs.\"\n dialogApply=\"Apply\"\n i18n-dialogCancel=\"kendo.editor.dialogCancel|The label of the **Cancel** button in all editor dialogs.\"\n dialogCancel=\"Cancel\"\n i18n-dialogInsert=\"kendo.editor.dialogInsert|The label of the **Insert** button in all editor dialogs.\"\n dialogInsert=\"Insert\"\n i18n-dialogUpdate=\"kendo.editor.dialogUpdate|The label of the **Update** button in all editor dialogs.\"\n dialogUpdate=\"Update\"\n i18n-fileText=\"kendo.editor.fileText|The caption for the file text in the insertFile dialog.\"\n fileText=\"Text\"\n i18n-fileTitle=\"kendo.editor.fileTitle|The caption for the file Title in the insertFile dialog.\"\n fileTitle=\"Title\"\n i18n-fileWebAddress=\"kendo.editor.fileWebAddress|The caption for the file URL in the insertFile dialog.\"\n fileWebAddress=\"Web address\"\n i18n-fontFamily=\"kendo.editor.fontFamily|The title of the tool that changes the text font.\"\n fontFamily=\"Select font family\"\n i18n-fontSize=\"kendo.editor.fontSize|The title of the tool that changes the text size.\"\n fontSize=\"Select font size\"\n i18n-foreColor=\"kendo.editor.foreColor|The title of the tool that changes the text color.\"\n foreColor=\"Color\"\n i18n-format=\"kendo.editor.format|The title of the tool that lets users choose block formats.\"\n format=\"Format\"\n i18n-imageAltText=\"kendo.editor.imageAltText|The caption for the image alternate text in the insertImage dialog.\"\n imageAltText=\"Alternate text\"\n i18n-imageHeight=\"kendo.editor.imageHeight|The caption for the image height in the insertImage dialog.\"\n imageHeight=\"Height (px)\"\n i18n-imageWebAddress=\"kendo.editor.imageWebAddress|The caption for the image URL in the insertImage dialog.\"\n imageWebAddress=\"Web address\"\n i18n-imageWidth=\"kendo.editor.imageWidth|The caption for the image width in the insertImage dialog.\"\n imageWidth=\"Width (px)\"\n i18n-indent=\"kendo.editor.indent|The title of the tool that indents the content.\"\n indent=\"Indent\"\n i18n-insertFile=\"kendo.editor.insertFile|The title of the tool that inserts links to files.\"\n insertFile=\"Insert file\"\n i18n-insertImage=\"kendo.editor.insertImage|The title of the tool that inserts images.\"\n insertImage=\"Insert image\"\n i18n-insertOrderedList=\"kendo.editor.insertOrderedList|The title of the tool that inserts an ordered list.\"\n insertOrderedList=\"Insert ordered list\"\n i18n-insertUnorderedList=\"kendo.editor.insertUnorderedList|The title of the tool that inserts an unordered list.\"\n insertUnorderedList=\"Insert unordered list\"\n i18n-italic=\"kendo.editor.italic|The title of the tool that makes text italicized.\"\n italic=\"Italic\"\n i18n-linkOpenInNewWindow=\"kendo.editor.linkOpenInNewWindow|The caption for the checkbox for opening the link in a new window in the createLink dialog.\"\n linkOpenInNewWindow=\"Open link in new window\"\n i18n-linkText=\"kendo.editor.linkText|The caption for the link text in the createLink dialog.\"\n linkText=\"Text\"\n i18n-linkTitle=\"kendo.editor.linkTitle|The caption for the link title in the createLink dialog.\"\n linkTitle=\"Title\"\n i18n-linkWebAddress=\"kendo.editor.linkWebAddress|The caption for the URL in the createLink dialog.\"\n linkWebAddress=\"Web address\"\n i18n-outdent=\"kendo.editor.outdent|The title of the tool that outdents the content.\"\n outdent=\"Outdent\"\n i18n-redo=\"kendo.editor.redo|The title of the tool that undos the last action.\"\n redo=\"Redo\"\n i18n-strikethrough=\"kendo.editor.strikethrough|The title of the tool that strikes through text.\"\n strikethrough=\"Strikethrough\"\n i18n-subscript=\"kendo.editor.subscript|The title of the tool that makes text subscript.\"\n subscript=\"Subscript\"\n i18n-superscript=\"kendo.editor.superscript|The title of the tool that makes text superscript.\"\n superscript=\"Superscript\"\n i18n-underline=\"kendo.editor.underline|The title of the tool that underlines text.\"\n underline=\"Underline\"\n i18n-unlink=\"kendo.editor.unlink|The title of the tool that removes hyperlinks.\"\n unlink=\"Remove Link\"\n i18n-undo=\"kendo.editor.undo|The title of the tool that undos the last action.\"\n undo=\"Undo\"\n i18n-viewSource=\"kendo.editor.viewSource|The title of the tool that shows the editor value as HTML.\"\n viewSource=\"View source\"\n i18n-insertTable=\"kendo.editor.insertTable|The title of the tool that inserts table.\"\n insertTable=\"Insert Table\"\n i18n-addColumnBefore=\"kendo.editor.addColumnBefore|The title of the tool that adds new column before currently selected column.\"\n addColumnBefore=\"Add column before\"\n i18n-addColumnAfter=\"kendo.editor.addColumnAfter|The title of the tool that adds new column after currently selected column.\"\n addColumnAfter=\"Add column after\"\n i18n-addRowBefore=\"kendo.editor.addRowBefore|The title of the tool that adds new row before currently selected row.\"\n addRowBefore=\"Add row before\"\n i18n-addRowAfter=\"kendo.editor.addRowAfter|The title of the tool that adds new row after currently selected row.\"\n addRowAfter=\"Add row after\"\n i18n-deleteColumn=\"kendo.editor.deleteColumn|The title of the tool that deletes a table column.\"\n deleteColumn=\"Delete column\"\n i18n-deleteRow=\"kendo.editor.deleteRow|The title of the tool that deletes a table row.\"\n deleteRow=\"Delete row\"\n i18n-deleteTable=\"kendo.editor.deleteTable|The title of the tool that deletes a table.\"\n deleteTable=\"Delete table\"\n >\n </ng-container>\n\n <ng-content select=\"kendo-toolbar\"></ng-content>\n <kendo-toolbar [overflow]=\"true\" [tabindex]=\"readonly ? -1 : 0\" *ngIf=\"!userToolBarElement\" #defaultToolbar>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-dropdownlist kendoEditorFormat></kendo-toolbar-dropdownlist>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorAlignLeftButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignCenterButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignRightButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignJustifyButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertUnorderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorInsertOrderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorIndentButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorOutdentButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorCreateLinkButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnlinkButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertImageButton></kendo-toolbar-button>\n </kendo-toolbar>\n\n <div *ngIf=\"!iframe\" #content [attr.dir]=\"direction\" class=\"k-editor-content\"></div>\n\n <div class=\"k-editor-content\" *ngIf=\"iframe\">\n <iframe #content frameborder=\"0\" class=\"k-iframe\" (load)=\"iframeOnLoad()\"></iframe>\n </div>\n\n <ng-container #dialogsContainer></ng-container>\n ",
|
|
3244
|
+
template: "\n <ng-container\n kendoEditorLocalizedMessages\n i18n-alignCenter=\"kendo.editor.alignCenter|The title of the tool that aligns text in the center.\"\n alignCenter=\"Center text\"\n i18n-alignJustify=\"kendo.editor.alignJustify|The title of the tool that justifies text both left and right.\"\n alignJustify=\"Justify\"\n i18n-alignLeft=\"kendo.editor.alignLeft|The title of the tool that aligns text on the left.\"\n alignLeft=\"Align text left\"\n i18n-alignRight=\"kendo.editor.alignRight|The title of the tool that aligns text on the right.\"\n alignRight=\"Align text right\"\n i18n-backColor=\"kendo.editor.backColor|The title of the tool that changes the text background color.\"\n backColor=\"Background color\"\n i18n-bold=\"kendo.editor.bold|The title of the tool that makes text bold.\"\n bold=\"Bold\"\n i18n-cleanFormatting=\"kendo.editor.cleanFormatting|The title of the Clean Formatting tool.\"\n cleanFormatting=\"Clean formatting\"\n i18n-createLink=\"kendo.editor.createLink|The title of the tool that creates hyperlinks.\"\n createLink=\"Insert link\"\n i18n-dialogApply=\"kendo.editor.dialogApply|The label of the **Apply** button in all editor dialogs.\"\n dialogApply=\"Apply\"\n i18n-dialogCancel=\"kendo.editor.dialogCancel|The label of the **Cancel** button in all editor dialogs.\"\n dialogCancel=\"Cancel\"\n i18n-dialogInsert=\"kendo.editor.dialogInsert|The label of the **Insert** button in all editor dialogs.\"\n dialogInsert=\"Insert\"\n i18n-dialogUpdate=\"kendo.editor.dialogUpdate|The label of the **Update** button in all editor dialogs.\"\n dialogUpdate=\"Update\"\n i18n-fileText=\"kendo.editor.fileText|The caption for the file text in the insertFile dialog.\"\n fileText=\"Text\"\n i18n-fileTitle=\"kendo.editor.fileTitle|The caption for the file Title in the insertFile dialog.\"\n fileTitle=\"Title\"\n i18n-fileWebAddress=\"kendo.editor.fileWebAddress|The caption for the file URL in the insertFile dialog.\"\n fileWebAddress=\"Web address\"\n i18n-fontFamily=\"kendo.editor.fontFamily|The title of the tool that changes the text font.\"\n fontFamily=\"Select font family\"\n i18n-fontSize=\"kendo.editor.fontSize|The title of the tool that changes the text size.\"\n fontSize=\"Select font size\"\n i18n-foreColor=\"kendo.editor.foreColor|The title of the tool that changes the text color.\"\n foreColor=\"Color\"\n i18n-format=\"kendo.editor.format|The title of the tool that lets users choose block formats.\"\n format=\"Format\"\n i18n-imageAltText=\"kendo.editor.imageAltText|The caption for the image alternate text in the insertImage dialog.\"\n imageAltText=\"Alternate text\"\n i18n-imageHeight=\"kendo.editor.imageHeight|The caption for the image height in the insertImage dialog.\"\n imageHeight=\"Height (px)\"\n i18n-imageWebAddress=\"kendo.editor.imageWebAddress|The caption for the image URL in the insertImage dialog.\"\n imageWebAddress=\"Web address\"\n i18n-imageWidth=\"kendo.editor.imageWidth|The caption for the image width in the insertImage dialog.\"\n imageWidth=\"Width (px)\"\n i18n-indent=\"kendo.editor.indent|The title of the tool that indents the content.\"\n indent=\"Indent\"\n i18n-insertFile=\"kendo.editor.insertFile|The title of the tool that inserts links to files.\"\n insertFile=\"Insert file\"\n i18n-insertImage=\"kendo.editor.insertImage|The title of the tool that inserts images.\"\n insertImage=\"Insert image\"\n i18n-insertOrderedList=\"kendo.editor.insertOrderedList|The title of the tool that inserts an ordered list.\"\n insertOrderedList=\"Insert ordered list\"\n i18n-insertUnorderedList=\"kendo.editor.insertUnorderedList|The title of the tool that inserts an unordered list.\"\n insertUnorderedList=\"Insert unordered list\"\n i18n-italic=\"kendo.editor.italic|The title of the tool that makes text italicized.\"\n italic=\"Italic\"\n i18n-linkOpenInNewWindow=\"kendo.editor.linkOpenInNewWindow|The caption for the checkbox for opening the link in a new window in the createLink dialog.\"\n linkOpenInNewWindow=\"Open link in new window\"\n i18n-linkText=\"kendo.editor.linkText|The caption for the link text in the createLink dialog.\"\n linkText=\"Text\"\n i18n-linkTitle=\"kendo.editor.linkTitle|The caption for the link title in the createLink dialog.\"\n linkTitle=\"Title\"\n i18n-linkWebAddress=\"kendo.editor.linkWebAddress|The caption for the URL in the createLink dialog.\"\n linkWebAddress=\"Web address\"\n i18n-outdent=\"kendo.editor.outdent|The title of the tool that outdents the content.\"\n outdent=\"Outdent\"\n i18n-print=\"kendo.editor.print|The title of the print tool.\"\n print=\"Print\"\n i18n-redo=\"kendo.editor.redo|The title of the tool that undos the last action.\"\n redo=\"Redo\"\n i18n-selectAll=\"kendo.editor.selectAll|The title of the tool that selects all content.\"\n selectAll=\"Select All\"\n i18n-strikethrough=\"kendo.editor.strikethrough|The title of the tool that strikes through text.\"\n strikethrough=\"Strikethrough\"\n i18n-subscript=\"kendo.editor.subscript|The title of the tool that makes text subscript.\"\n subscript=\"Subscript\"\n i18n-superscript=\"kendo.editor.superscript|The title of the tool that makes text superscript.\"\n superscript=\"Superscript\"\n i18n-underline=\"kendo.editor.underline|The title of the tool that underlines text.\"\n underline=\"Underline\"\n i18n-unlink=\"kendo.editor.unlink|The title of the tool that removes hyperlinks.\"\n unlink=\"Remove Link\"\n i18n-undo=\"kendo.editor.undo|The title of the tool that undos the last action.\"\n undo=\"Undo\"\n i18n-viewSource=\"kendo.editor.viewSource|The title of the tool that shows the editor value as HTML.\"\n viewSource=\"View source\"\n i18n-insertTable=\"kendo.editor.insertTable|The title of the tool that inserts table.\"\n insertTable=\"Insert Table\"\n i18n-addColumnBefore=\"kendo.editor.addColumnBefore|The title of the tool that adds new column before currently selected column.\"\n addColumnBefore=\"Add column before\"\n i18n-addColumnAfter=\"kendo.editor.addColumnAfter|The title of the tool that adds new column after currently selected column.\"\n addColumnAfter=\"Add column after\"\n i18n-addRowBefore=\"kendo.editor.addRowBefore|The title of the tool that adds new row before currently selected row.\"\n addRowBefore=\"Add row before\"\n i18n-addRowAfter=\"kendo.editor.addRowAfter|The title of the tool that adds new row after currently selected row.\"\n addRowAfter=\"Add row after\"\n i18n-deleteColumn=\"kendo.editor.deleteColumn|The title of the tool that deletes a table column.\"\n deleteColumn=\"Delete column\"\n i18n-deleteRow=\"kendo.editor.deleteRow|The title of the tool that deletes a table row.\"\n deleteRow=\"Delete row\"\n i18n-deleteTable=\"kendo.editor.deleteTable|The title of the tool that deletes a table.\"\n deleteTable=\"Delete table\"\n >\n </ng-container>\n\n <ng-content select=\"kendo-toolbar\"></ng-content>\n <kendo-toolbar [overflow]=\"true\" [tabindex]=\"readonly ? -1 : 0\" *ngIf=\"!userToolBarElement\" #defaultToolbar>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-dropdownlist kendoEditorFormat></kendo-toolbar-dropdownlist>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorAlignLeftButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignCenterButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignRightButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignJustifyButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertUnorderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorInsertOrderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorIndentButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorOutdentButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorCreateLinkButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnlinkButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertImageButton></kendo-toolbar-button>\n </kendo-toolbar>\n\n <div *ngIf=\"!iframe\" #content [attr.dir]=\"direction\" class=\"k-editor-content\"></div>\n\n <div class=\"k-editor-content\" *ngIf=\"iframe\">\n <iframe #content frameborder=\"0\" class=\"k-iframe\" (load)=\"iframeOnLoad()\"></iframe>\n </div>\n\n <ng-container #dialogsContainer></ng-container>\n ",
|
|
3224
3245
|
styles: [
|
|
3225
3246
|
"\n >>> .k-editor-content > .ProseMirror {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n outline: none;\n overflow: auto;\n }\n\n .k-iframe {\n width: 100%;\n height: 100%;\n display: block;\n }\n "
|
|
3226
3247
|
]
|
|
@@ -4704,9 +4725,11 @@ var commandIcons = {
|
|
|
4704
4725
|
alignJustify: 'align-justify',
|
|
4705
4726
|
alignLeft: 'align-left',
|
|
4706
4727
|
alignRight: 'align-right',
|
|
4728
|
+
backColor: 'background',
|
|
4707
4729
|
bold: 'bold',
|
|
4708
4730
|
cleanFormatting: 'clear-css',
|
|
4709
4731
|
createLink: 'link-horizontal',
|
|
4732
|
+
foreColor: 'foreground-color',
|
|
4710
4733
|
indent: 'indent-increase',
|
|
4711
4734
|
insertFile: 'file-add',
|
|
4712
4735
|
insertImage: 'image',
|
|
@@ -4714,7 +4737,9 @@ var commandIcons = {
|
|
|
4714
4737
|
insertUnorderedList: 'list-unordered',
|
|
4715
4738
|
italic: 'italic',
|
|
4716
4739
|
outdent: 'indent-decrease',
|
|
4740
|
+
print: 'print',
|
|
4717
4741
|
redo: 'redo',
|
|
4742
|
+
selectAll: 'select-all',
|
|
4718
4743
|
strikethrough: 'strikethrough',
|
|
4719
4744
|
subscript: 'sub-script',
|
|
4720
4745
|
superscript: 'sup-script',
|
|
@@ -4722,8 +4747,6 @@ var commandIcons = {
|
|
|
4722
4747
|
undo: 'undo',
|
|
4723
4748
|
unlink: 'unlink-horizontal',
|
|
4724
4749
|
viewSource: 'html',
|
|
4725
|
-
foreColor: 'foreground-color',
|
|
4726
|
-
backColor: 'background',
|
|
4727
4750
|
//table
|
|
4728
4751
|
insertTable: 'table-insert',
|
|
4729
4752
|
addColumnBefore: 'table-column-insert-left',
|
|
@@ -4749,18 +4772,20 @@ var EditorCommandBase = /** @class */ (function () {
|
|
|
4749
4772
|
this.localization = localization;
|
|
4750
4773
|
}
|
|
4751
4774
|
EditorCommandBase.prototype.ngOnInit = function () {
|
|
4752
|
-
var _this = this;
|
|
4753
4775
|
this.subs = this.editor.stateChange.subscribe(this.onStateChange.bind(this));
|
|
4754
4776
|
this.subs.add(this.button.click.subscribe((this.clickHandler.bind(this))));
|
|
4755
4777
|
this.subs.add(this.button.pointerdown.subscribe((this.pointerdownHandler.bind(this))));
|
|
4756
|
-
|
|
4778
|
+
};
|
|
4779
|
+
EditorCommandBase.prototype.ngAfterViewInit = function () {
|
|
4780
|
+
var _this = this;
|
|
4781
|
+
setTimeout(function () {
|
|
4757
4782
|
var text = _this.localization.get(_this.command);
|
|
4758
4783
|
if (text) {
|
|
4759
|
-
_this.button.showText =
|
|
4760
|
-
_this.button.showIcon =
|
|
4784
|
+
_this.button.showText = 'overflow';
|
|
4785
|
+
_this.button.showIcon = 'both';
|
|
4761
4786
|
_this.button.text = text;
|
|
4762
4787
|
}
|
|
4763
|
-
if (!_this.button.icon) {
|
|
4788
|
+
if (!_this.button.toolbarOptions.icon) {
|
|
4764
4789
|
_this.button.icon = commandIcons[_this.command];
|
|
4765
4790
|
}
|
|
4766
4791
|
_this.button.title = text;
|
|
@@ -5969,10 +5994,18 @@ var Messages = /** @class */ (function (_super) {
|
|
|
5969
5994
|
Input(),
|
|
5970
5995
|
__metadata("design:type", String)
|
|
5971
5996
|
], Messages.prototype, "outdent", void 0);
|
|
5997
|
+
__decorate([
|
|
5998
|
+
Input(),
|
|
5999
|
+
__metadata("design:type", String)
|
|
6000
|
+
], Messages.prototype, "print", void 0);
|
|
5972
6001
|
__decorate([
|
|
5973
6002
|
Input(),
|
|
5974
6003
|
__metadata("design:type", String)
|
|
5975
6004
|
], Messages.prototype, "redo", void 0);
|
|
6005
|
+
__decorate([
|
|
6006
|
+
Input(),
|
|
6007
|
+
__metadata("design:type", String)
|
|
6008
|
+
], Messages.prototype, "selectAll", void 0);
|
|
5976
6009
|
__decorate([
|
|
5977
6010
|
Input(),
|
|
5978
6011
|
__metadata("design:type", String)
|
|
@@ -6189,6 +6222,100 @@ var DropDownToolDirective = /** @class */ (function () {
|
|
|
6189
6222
|
return DropDownToolDirective;
|
|
6190
6223
|
}());
|
|
6191
6224
|
|
|
6225
|
+
/**
|
|
6226
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Print tool
|
|
6227
|
+
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
6228
|
+
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
6229
|
+
*
|
|
6230
|
+
* > The Editor Print tool is supported in the default [`iframe`](https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorComponent/#toc-iframe) mode only.
|
|
6231
|
+
*
|
|
6232
|
+
* @example
|
|
6233
|
+
* ```ts-no-run
|
|
6234
|
+
* <kendo-toolbar-button kendoEditorPrintButton></kendo-toolbar-button>
|
|
6235
|
+
* ```
|
|
6236
|
+
*
|
|
6237
|
+
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
6238
|
+
*
|
|
6239
|
+
* @example
|
|
6240
|
+
* ```ts-no-run
|
|
6241
|
+
* <kendo-toolbar-button kendoEditorPrintButton icon="blogger"></kendo-toolbar-button>
|
|
6242
|
+
* ```
|
|
6243
|
+
*/
|
|
6244
|
+
var EditorPrintDirective = /** @class */ (function (_super) {
|
|
6245
|
+
__extends(EditorPrintDirective, _super);
|
|
6246
|
+
function EditorPrintDirective(button, editor, localization) {
|
|
6247
|
+
var _this = _super.call(this, 'print', button, editor, localization) || this;
|
|
6248
|
+
_this.editor = editor;
|
|
6249
|
+
return _this;
|
|
6250
|
+
}
|
|
6251
|
+
EditorPrintDirective.prototype.ngAfterViewInit = function () {
|
|
6252
|
+
if (isDevMode) {
|
|
6253
|
+
if (!this.editor.iframe) {
|
|
6254
|
+
throw new Error(EditorErrorMessages.printTool);
|
|
6255
|
+
}
|
|
6256
|
+
}
|
|
6257
|
+
};
|
|
6258
|
+
EditorPrintDirective.prototype.clickHandler = function () {
|
|
6259
|
+
if (this.editor.iframe) {
|
|
6260
|
+
var view = this.editor.view;
|
|
6261
|
+
var dom = view && view.dom;
|
|
6262
|
+
var doc = dom && dom.ownerDocument;
|
|
6263
|
+
var editorWindow = doc && doc.defaultView;
|
|
6264
|
+
if (editorWindow) {
|
|
6265
|
+
editorWindow.print();
|
|
6266
|
+
}
|
|
6267
|
+
}
|
|
6268
|
+
};
|
|
6269
|
+
EditorPrintDirective = __decorate([
|
|
6270
|
+
Directive({
|
|
6271
|
+
selector: 'kendo-toolbar-button[kendoEditorPrintButton]'
|
|
6272
|
+
}),
|
|
6273
|
+
__param(1, Host()),
|
|
6274
|
+
__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
6275
|
+
EditorComponent,
|
|
6276
|
+
EditorLocalizationService])
|
|
6277
|
+
], EditorPrintDirective);
|
|
6278
|
+
return EditorPrintDirective;
|
|
6279
|
+
}(EditorCommandButton));
|
|
6280
|
+
|
|
6281
|
+
/**
|
|
6282
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor SelectAll tool
|
|
6283
|
+
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
6284
|
+
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
6285
|
+
*
|
|
6286
|
+
* @example
|
|
6287
|
+
* ```ts-no-run
|
|
6288
|
+
* <kendo-toolbar-button kendoEditorSelectAllButton></kendo-toolbar-button>
|
|
6289
|
+
* ```
|
|
6290
|
+
*
|
|
6291
|
+
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
6292
|
+
*
|
|
6293
|
+
* @example
|
|
6294
|
+
* ```ts-no-run
|
|
6295
|
+
* <kendo-toolbar-button kendoEditorSelectAllButton icon="blogger"></kendo-toolbar-button>
|
|
6296
|
+
* ```
|
|
6297
|
+
*/
|
|
6298
|
+
var EditorSelectAllButtonDirective = /** @class */ (function (_super) {
|
|
6299
|
+
__extends(EditorSelectAllButtonDirective, _super);
|
|
6300
|
+
function EditorSelectAllButtonDirective(button, editor, localization) {
|
|
6301
|
+
return _super.call(this, 'selectAll', button, editor, localization) || this;
|
|
6302
|
+
}
|
|
6303
|
+
EditorSelectAllButtonDirective.prototype.clickHandler = function () {
|
|
6304
|
+
this.editor.shouldEmitFocus = true;
|
|
6305
|
+
_super.prototype.clickHandler.call(this);
|
|
6306
|
+
};
|
|
6307
|
+
EditorSelectAllButtonDirective = __decorate([
|
|
6308
|
+
Directive({
|
|
6309
|
+
selector: 'kendo-toolbar-button[kendoEditorSelectAllButton]'
|
|
6310
|
+
}),
|
|
6311
|
+
__param(1, Host()),
|
|
6312
|
+
__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
6313
|
+
EditorComponent,
|
|
6314
|
+
EditorLocalizationService])
|
|
6315
|
+
], EditorSelectAllButtonDirective);
|
|
6316
|
+
return EditorSelectAllButtonDirective;
|
|
6317
|
+
}(EditorCommandButton));
|
|
6318
|
+
|
|
6192
6319
|
var COMPONENT_DIRECTIVES = [
|
|
6193
6320
|
//alignment
|
|
6194
6321
|
EditorAlignLeftButtonDirective,
|
|
@@ -6240,7 +6367,11 @@ var COMPONENT_DIRECTIVES = [
|
|
|
6240
6367
|
CustomMessagesComponent,
|
|
6241
6368
|
LocalizedMessagesDirective,
|
|
6242
6369
|
// dropdown tools
|
|
6243
|
-
DropDownToolDirective
|
|
6370
|
+
DropDownToolDirective,
|
|
6371
|
+
// print
|
|
6372
|
+
EditorPrintDirective,
|
|
6373
|
+
// select all
|
|
6374
|
+
EditorSelectAllButtonDirective
|
|
6244
6375
|
];
|
|
6245
6376
|
var TOOLBAR_TOOLS = [
|
|
6246
6377
|
EditorFontSizeComponent,
|
|
@@ -6357,4 +6488,4 @@ var EditorModule = /** @class */ (function () {
|
|
|
6357
6488
|
* Generated bundle index. Do not edit.
|
|
6358
6489
|
*/
|
|
6359
6490
|
|
|
6360
|
-
export { ColorPickerDialogComponent, FileLinkDialogComponent, FontFamilyDialogComponent, FontSizeDialogComponent, FormatDialogComponent, ImageDialogComponent, InsertTableDialogComponent, SourceDialogComponent, CustomMessagesComponent, EditorLocalizationService, LocalizedMessagesDirective, Messages, EditorAlignCenterButtonDirective, EditorAlignJustifyButtonDirective, EditorAlignLeftButtonDirective, EditorAlignRightButtonDirective, EditorBackColorDirective, EditorColorPickerComponent, EditorForeColorDirective, EditorCleanFormattingButtonDirective, FontFamilyDropDownListComponent, EditorFontFamilyComponent, FontSizeDropDownListComponent, EditorFontSizeComponent, FormatDropDownListComponent, EditorFormatComponent, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorInsertFileButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, DropDownToolDirective, EditorCommandBase, EditorCommandButton, EditorCommandDialog, EditorViewSourceButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, PopupTableGridComponent, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorUnderlineButtonDirective, EditorComponent, EditorModule, schema };
|
|
6491
|
+
export { ColorPickerDialogComponent, FileLinkDialogComponent, FontFamilyDialogComponent, FontSizeDialogComponent, FormatDialogComponent, ImageDialogComponent, InsertTableDialogComponent, SourceDialogComponent, CustomMessagesComponent, EditorLocalizationService, LocalizedMessagesDirective, Messages, EditorAlignCenterButtonDirective, EditorAlignJustifyButtonDirective, EditorAlignLeftButtonDirective, EditorAlignRightButtonDirective, EditorBackColorDirective, EditorColorPickerComponent, EditorForeColorDirective, EditorCleanFormattingButtonDirective, FontFamilyDropDownListComponent, EditorFontFamilyComponent, FontSizeDropDownListComponent, EditorFontSizeComponent, FormatDropDownListComponent, EditorFormatComponent, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorInsertFileButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorPrintDirective, EditorSelectAllButtonDirective, DropDownToolDirective, EditorCommandBase, EditorCommandButton, EditorCommandDialog, EditorViewSourceButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, PopupTableGridComponent, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorUnderlineButtonDirective, EditorComponent, EditorModule, schema };
|
|
@@ -15,5 +15,6 @@ exports.EditorErrorMessages = {
|
|
|
15
15
|
setSchemaOnce: 'The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/',
|
|
16
16
|
pluginsCallbackType: ɵ0,
|
|
17
17
|
setPluginsOnce: 'The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/',
|
|
18
|
-
setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/'
|
|
18
|
+
setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/',
|
|
19
|
+
printTool: 'The Print tool and functionality are supported only in iframe mode. See https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorPrintButtonDirective/'
|
|
19
20
|
};
|
|
@@ -12,9 +12,11 @@ exports.commandIcons = {
|
|
|
12
12
|
alignJustify: 'align-justify',
|
|
13
13
|
alignLeft: 'align-left',
|
|
14
14
|
alignRight: 'align-right',
|
|
15
|
+
backColor: 'background',
|
|
15
16
|
bold: 'bold',
|
|
16
17
|
cleanFormatting: 'clear-css',
|
|
17
18
|
createLink: 'link-horizontal',
|
|
19
|
+
foreColor: 'foreground-color',
|
|
18
20
|
indent: 'indent-increase',
|
|
19
21
|
insertFile: 'file-add',
|
|
20
22
|
insertImage: 'image',
|
|
@@ -22,7 +24,9 @@ exports.commandIcons = {
|
|
|
22
24
|
insertUnorderedList: 'list-unordered',
|
|
23
25
|
italic: 'italic',
|
|
24
26
|
outdent: 'indent-decrease',
|
|
27
|
+
print: 'print',
|
|
25
28
|
redo: 'redo',
|
|
29
|
+
selectAll: 'select-all',
|
|
26
30
|
strikethrough: 'strikethrough',
|
|
27
31
|
subscript: 'sub-script',
|
|
28
32
|
superscript: 'sup-script',
|
|
@@ -30,8 +34,6 @@ exports.commandIcons = {
|
|
|
30
34
|
undo: 'undo',
|
|
31
35
|
unlink: 'unlink-horizontal',
|
|
32
36
|
viewSource: 'html',
|
|
33
|
-
foreColor: 'foreground-color',
|
|
34
|
-
backColor: 'background',
|
|
35
37
|
//table
|
|
36
38
|
insertTable: 'table-insert',
|
|
37
39
|
addColumnBefore: 'table-column-insert-left',
|
|
@@ -10,7 +10,7 @@ var table_commands_1 = require("./table-commands");
|
|
|
10
10
|
var alignRemove = function (state, dispatch) { return kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignRemoveRules)(state, dispatch); };
|
|
11
11
|
var ɵ0 = alignRemove;
|
|
12
12
|
exports.ɵ0 = ɵ0;
|
|
13
|
-
var ɵ1 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.bold, { applyToWord: applyToWord })); }, ɵ2 = function (options) { return kendo_editor_common_1.cleanFormatting(options); }, ɵ3 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ4 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ5 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }); }, ɵ6 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }); }, ɵ7 = function (text) { return kendo_editor_common_1.insertText(text); }, ɵ8 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.italic, { applyToWord: applyToWord })); }, ɵ9 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.strikethrough, { applyToWord: applyToWord })); }, ɵ10 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.subscript, { applyToWord: applyToWord })); }, ɵ11 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.superscript, { applyToWord: applyToWord })); }, ɵ12 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.underline, { applyToWord: applyToWord })); }, ɵ13 = function () { return kendo_editor_common_1.removeLink(kendo_editor_common_1.link); }, ɵ14 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'color', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ15 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'background-color', value: attrs.value, applyToWord: attrs.applyToWord }); };
|
|
13
|
+
var ɵ1 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.bold, { applyToWord: applyToWord })); }, ɵ2 = function (options) { return kendo_editor_common_1.cleanFormatting(options); }, ɵ3 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ4 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ5 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }); }, ɵ6 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }); }, ɵ7 = function (text) { return kendo_editor_common_1.insertText(text); }, ɵ8 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.italic, { applyToWord: applyToWord })); }, ɵ9 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.strikethrough, { applyToWord: applyToWord })); }, ɵ10 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.subscript, { applyToWord: applyToWord })); }, ɵ11 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.superscript, { applyToWord: applyToWord })); }, ɵ12 = function (applyToWord) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.toggleInlineFormat, tslib_1.__assign({}, kendo_editor_common_1.underline, { applyToWord: applyToWord })); }, ɵ13 = function () { return kendo_editor_common_1.removeLink(kendo_editor_common_1.link); }, ɵ14 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'color', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ15 = function (attrs) { return kendo_editor_common_1.expandToWordWrap(kendo_editor_common_1.applyInlineStyle, { style: 'background-color', value: attrs.value, applyToWord: attrs.applyToWord }); }, ɵ16 = function () { return function (state, dispatch) { return kendo_editor_common_1.selectAll(state, dispatch); }; };
|
|
14
14
|
exports.ɵ1 = ɵ1;
|
|
15
15
|
exports.ɵ2 = ɵ2;
|
|
16
16
|
exports.ɵ3 = ɵ3;
|
|
@@ -26,6 +26,7 @@ exports.ɵ12 = ɵ12;
|
|
|
26
26
|
exports.ɵ13 = ɵ13;
|
|
27
27
|
exports.ɵ14 = ɵ14;
|
|
28
28
|
exports.ɵ15 = ɵ15;
|
|
29
|
+
exports.ɵ16 = ɵ16;
|
|
29
30
|
var inlineCommand = {
|
|
30
31
|
bold: ɵ1,
|
|
31
32
|
cleanFormatting: ɵ2,
|
|
@@ -41,13 +42,13 @@ var inlineCommand = {
|
|
|
41
42
|
underline: ɵ12,
|
|
42
43
|
unlink: ɵ13,
|
|
43
44
|
foreColor: ɵ14,
|
|
44
|
-
backColor: ɵ15
|
|
45
|
+
backColor: ɵ15,
|
|
46
|
+
selectAll: ɵ16
|
|
45
47
|
};
|
|
46
|
-
var ɵ
|
|
48
|
+
var ɵ17 = function () { return function (state, dispatch) { return kendo_editor_common_1.isAligned(state, kendo_editor_common_1.alignCenterRules) ? alignRemove(state, dispatch) : kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignCenterRules)(state, dispatch); }; }, ɵ18 = function () { return function (state, dispatch) { return kendo_editor_common_1.isAligned(state, kendo_editor_common_1.alignJustifyRules) ? alignRemove(state, dispatch) : kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignJustifyRules)(state, dispatch); }; }, ɵ19 = function () { return function (state, dispatch) { return kendo_editor_common_1.isAligned(state, kendo_editor_common_1.alignLeftRules) ? alignRemove(state, dispatch) : kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignLeftRules)(state, dispatch); }; }, ɵ20 = function () { return function (state, dispatch) { return kendo_editor_common_1.isAligned(state, kendo_editor_common_1.alignRightRules) ? alignRemove(state, dispatch) : kendo_editor_common_1.alignBlocks(kendo_editor_common_1.alignRightRules)(state, dispatch); }; }, ɵ21 = function (formatAttr) { return kendo_editor_common_1.formatBlockElements(formatAttr.tag); }, ɵ22 = function () { return kendo_editor_common_1.getHtml; }, ɵ23 = function () { return kendo_editor_common_1.indent; }, ɵ24 = function (attrs) { return kendo_editor_common_1.insertImage(attrs); }, ɵ25 = function () { return kendo_editor_common_1.toggleOrderedList; }, ɵ26 = function () { return kendo_editor_common_1.toggleUnorderedList; }, ɵ27 = function () { return kendo_editor_common_1.outdent; }, ɵ28 = function () { return kendo_editor_common_1.redo; }, ɵ29 = function (_a) {
|
|
47
49
|
var content = _a.content, parseOptions = _a.parseOptions;
|
|
48
50
|
return kendo_editor_common_1.setHtml(content, 'setHTML', parseOptions);
|
|
49
|
-
}, ɵ
|
|
50
|
-
exports.ɵ16 = ɵ16;
|
|
51
|
+
}, ɵ30 = function () { return kendo_editor_common_1.undo; };
|
|
51
52
|
exports.ɵ17 = ɵ17;
|
|
52
53
|
exports.ɵ18 = ɵ18;
|
|
53
54
|
exports.ɵ19 = ɵ19;
|
|
@@ -61,26 +62,26 @@ exports.ɵ26 = ɵ26;
|
|
|
61
62
|
exports.ɵ27 = ɵ27;
|
|
62
63
|
exports.ɵ28 = ɵ28;
|
|
63
64
|
exports.ɵ29 = ɵ29;
|
|
65
|
+
exports.ɵ30 = ɵ30;
|
|
64
66
|
var blockCommand = {
|
|
65
|
-
alignCenter: ɵ
|
|
66
|
-
alignJustify: ɵ
|
|
67
|
-
alignLeft: ɵ
|
|
68
|
-
alignRight: ɵ
|
|
69
|
-
format: ɵ
|
|
70
|
-
getHTML: ɵ
|
|
71
|
-
indent: ɵ
|
|
72
|
-
insertImage: ɵ
|
|
67
|
+
alignCenter: ɵ17,
|
|
68
|
+
alignJustify: ɵ18,
|
|
69
|
+
alignLeft: ɵ19,
|
|
70
|
+
alignRight: ɵ20,
|
|
71
|
+
format: ɵ21,
|
|
72
|
+
getHTML: ɵ22,
|
|
73
|
+
indent: ɵ23,
|
|
74
|
+
insertImage: ɵ24,
|
|
73
75
|
// think about changing the command name.
|
|
74
|
-
insertOrderedList: ɵ
|
|
76
|
+
insertOrderedList: ɵ25,
|
|
75
77
|
// think about changing the command name.
|
|
76
|
-
insertUnorderedList: ɵ
|
|
77
|
-
outdent: ɵ
|
|
78
|
-
redo: ɵ
|
|
79
|
-
setHTML: ɵ
|
|
80
|
-
undo: ɵ
|
|
78
|
+
insertUnorderedList: ɵ26,
|
|
79
|
+
outdent: ɵ27,
|
|
80
|
+
redo: ɵ28,
|
|
81
|
+
setHTML: ɵ29,
|
|
82
|
+
undo: ɵ30
|
|
81
83
|
};
|
|
82
|
-
var ɵ
|
|
83
|
-
exports.ɵ30 = ɵ30;
|
|
84
|
+
var ɵ31 = function (attr) { return table_commands_1.insertTable(attr); }, ɵ32 = function () { return table_commands_1.addColumnBefore; }, ɵ33 = function () { return table_commands_1.addColumnAfter; }, ɵ34 = function () { return table_commands_1.addRowBefore; }, ɵ35 = function () { return table_commands_1.addRowAfter; }, ɵ36 = function () { return table_commands_1.deleteRow; }, ɵ37 = function () { return table_commands_1.deleteColumn; }, ɵ38 = function () { return table_commands_1.mergeCells; }, ɵ39 = function () { return table_commands_1.splitCell; }, ɵ40 = function () { return table_commands_1.deleteTable; };
|
|
84
85
|
exports.ɵ31 = ɵ31;
|
|
85
86
|
exports.ɵ32 = ɵ32;
|
|
86
87
|
exports.ɵ33 = ɵ33;
|
|
@@ -90,17 +91,18 @@ exports.ɵ36 = ɵ36;
|
|
|
90
91
|
exports.ɵ37 = ɵ37;
|
|
91
92
|
exports.ɵ38 = ɵ38;
|
|
92
93
|
exports.ɵ39 = ɵ39;
|
|
94
|
+
exports.ɵ40 = ɵ40;
|
|
93
95
|
var tableCommand = {
|
|
94
|
-
insertTable: ɵ
|
|
95
|
-
addColumnBefore: ɵ
|
|
96
|
-
addColumnAfter: ɵ
|
|
97
|
-
addRowBefore: ɵ
|
|
98
|
-
addRowAfter: ɵ
|
|
99
|
-
deleteRow: ɵ
|
|
100
|
-
deleteColumn: ɵ
|
|
101
|
-
mergeCells: ɵ
|
|
102
|
-
splitCell: ɵ
|
|
103
|
-
deleteTable: ɵ
|
|
96
|
+
insertTable: ɵ31,
|
|
97
|
+
addColumnBefore: ɵ32,
|
|
98
|
+
addColumnAfter: ɵ33,
|
|
99
|
+
addRowBefore: ɵ34,
|
|
100
|
+
addRowAfter: ɵ35,
|
|
101
|
+
deleteRow: ɵ36,
|
|
102
|
+
deleteColumn: ɵ37,
|
|
103
|
+
mergeCells: ɵ38,
|
|
104
|
+
splitCell: ɵ39,
|
|
105
|
+
deleteTable: ɵ40
|
|
104
106
|
};
|
|
105
107
|
/**
|
|
106
108
|
* @hidden
|