@progress/kendo-angular-editor 3.0.0-dev.202201121058 → 3.0.1-dev.202201201312
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/LICENSE.md +1 -1
- package/NOTICE.txt +119 -79
- package/README.md +1 -1
- package/dist/cdn/js/kendo-angular-editor.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/common/error-messages.js +1 -1
- package/dist/es/config/command-icons.js +1 -0
- package/dist/es/config/commands.js +16 -15
- package/dist/es/config/schema.js +1 -2
- package/dist/es/dialogs/colorpicker-dialog.component.js +1 -1
- package/dist/es/dialogs/file-link-dialog.component.js +1 -1
- package/dist/es/dialogs/image-dialog.component.js +1 -1
- package/dist/es/editor-toolbar-state.js +12 -2
- package/dist/es/editor.component.js +5 -5
- package/dist/es/editor.module.js +6 -3
- package/dist/es/index.js +2 -0
- package/dist/es/localization/messages.js +4 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/blockquote/editor-blockquote-button.directive.js +48 -0
- package/dist/es/tools/colorpicker/editor-colorpicker.component.js +24 -7
- package/dist/es/tools/format/editor-format-dropdownlist.component.js +1 -1
- package/dist/es/tools/format/editor-format.component.js +0 -1
- package/dist/es/tools/tables/popup-table-grid.component.js +1 -1
- package/dist/es2015/common/commands.d.ts +1 -1
- package/dist/es2015/common/error-messages.js +1 -1
- package/dist/es2015/common/format-item.interface.d.ts +1 -1
- package/dist/es2015/config/command-icons.js +1 -0
- package/dist/es2015/config/commands.js +16 -15
- package/dist/es2015/config/schema.d.ts +1 -1
- package/dist/es2015/config/schema.js +1 -1
- package/dist/es2015/dialogs/colorpicker-dialog.component.js +1 -1
- package/dist/es2015/dialogs/file-link-dialog.component.js +4 -4
- package/dist/es2015/dialogs/image-dialog.component.js +4 -4
- package/dist/es2015/editor-toolbar-state.js +12 -2
- package/dist/es2015/editor.component.d.ts +1 -1
- package/dist/es2015/editor.component.js +6 -4
- package/dist/es2015/editor.module.js +6 -3
- 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 +4 -0
- package/dist/es2015/localization/messages.js +4 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/tools/blockquote/editor-blockquote-button.directive.d.ts +30 -0
- package/dist/es2015/tools/blockquote/editor-blockquote-button.directive.js +45 -0
- package/dist/es2015/tools/colorpicker/editor-colorpicker.component.d.ts +8 -2
- package/dist/es2015/tools/colorpicker/editor-colorpicker.component.js +20 -7
- package/dist/es2015/tools/format/editor-format-dropdownlist.component.js +0 -4
- package/dist/es2015/tools/format/editor-format.component.js +0 -1
- package/dist/es2015/tools/tables/popup-table-grid.component.js +2 -2
- package/dist/fesm2015/index.js +111 -48
- package/dist/fesm5/index.js +111 -39
- package/dist/npm/common/error-messages.js +1 -1
- package/dist/npm/config/command-icons.js +1 -0
- package/dist/npm/config/commands.js +16 -14
- package/dist/npm/config/schema.js +1 -2
- package/dist/npm/dialogs/colorpicker-dialog.component.js +1 -1
- package/dist/npm/dialogs/file-link-dialog.component.js +1 -1
- package/dist/npm/dialogs/image-dialog.component.js +1 -1
- package/dist/npm/editor-toolbar-state.js +11 -1
- package/dist/npm/editor.component.js +5 -5
- package/dist/npm/editor.module.js +7 -4
- package/dist/npm/index.js +5 -0
- package/dist/npm/localization/messages.js +4 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/blockquote/editor-blockquote-button.directive.js +50 -0
- package/dist/npm/tools/colorpicker/editor-colorpicker.component.js +24 -7
- package/dist/npm/tools/format/editor-format-dropdownlist.component.js +1 -1
- package/dist/npm/tools/format/editor-format.component.js +0 -1
- package/dist/npm/tools/tables/popup-table-grid.component.js +1 -1
- package/dist/systemjs/kendo-angular-editor.js +1 -1
- package/package.json +18 -18
- package/schematics/ngAdd/index.js +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { alignBlocks, alignLeftRules, alignCenterRules, alignRightRules, alignJustifyRules, alignRemoveRules, indent, outdent, setHtml, getHtml, insertImage, insertText, applyLink, removeLink, expandToWordWrap,
|
|
5
|
+
import { alignBlocks, alignLeftRules, alignCenterRules, alignRightRules, alignJustifyRules, alignRemoveRules, indent, outdent, setHtml, getHtml, insertImage, insertText, applyLink, removeLink, expandToWordWrap, blockquote,
|
|
6
6
|
//marks
|
|
7
7
|
bold, italic, underline, strikethrough, subscript, superscript, link, toggleInlineFormat, applyInlineStyle, formatBlockElements, toggleOrderedList, toggleUnorderedList, isAligned, undo, redo, cleanFormatting, selectAll, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, deleteTable, mergeCells, splitCell } from '@progress/kendo-editor-common';
|
|
8
8
|
import { insertTable } from './table-commands';
|
|
@@ -27,7 +27,7 @@ const inlineCommand = {
|
|
|
27
27
|
backColor: ɵ15,
|
|
28
28
|
selectAll: ɵ16
|
|
29
29
|
};
|
|
30
|
-
const ɵ17 = () => (state, dispatch) => isAligned(state, alignCenterRules) ? alignRemove(state, dispatch) : alignBlocks(alignCenterRules)(state, dispatch), ɵ18 = () => (state, dispatch) => isAligned(state, alignJustifyRules) ? alignRemove(state, dispatch) : alignBlocks(alignJustifyRules)(state, dispatch), ɵ19 = () => (state, dispatch) => isAligned(state, alignLeftRules) ? alignRemove(state, dispatch) : alignBlocks(alignLeftRules)(state, dispatch), ɵ20 = () => (state, dispatch) => isAligned(state, alignRightRules) ? alignRemove(state, dispatch) : alignBlocks(alignRightRules)(state, dispatch), ɵ21 = formatAttr => formatBlockElements(formatAttr.tag), ɵ22 = () => getHtml, ɵ23 = () => indent, ɵ24 = attrs => insertImage(attrs), ɵ25 = () => toggleOrderedList, ɵ26 = () => toggleUnorderedList, ɵ27 = () => outdent, ɵ28 = () => redo, ɵ29 = ({ content, parseOptions }) => setHtml(content, 'setHTML', parseOptions), ɵ30 = () => undo;
|
|
30
|
+
const ɵ17 = () => (state, dispatch) => isAligned(state, alignCenterRules) ? alignRemove(state, dispatch) : alignBlocks(alignCenterRules)(state, dispatch), ɵ18 = () => (state, dispatch) => isAligned(state, alignJustifyRules) ? alignRemove(state, dispatch) : alignBlocks(alignJustifyRules)(state, dispatch), ɵ19 = () => (state, dispatch) => isAligned(state, alignLeftRules) ? alignRemove(state, dispatch) : alignBlocks(alignLeftRules)(state, dispatch), ɵ20 = () => (state, dispatch) => isAligned(state, alignRightRules) ? alignRemove(state, dispatch) : alignBlocks(alignRightRules)(state, dispatch), ɵ21 = formatAttr => formatBlockElements(formatAttr.tag), ɵ22 = () => getHtml, ɵ23 = () => indent, ɵ24 = attrs => insertImage(attrs), ɵ25 = () => toggleOrderedList, ɵ26 = () => toggleUnorderedList, ɵ27 = () => outdent, ɵ28 = () => redo, ɵ29 = ({ content, parseOptions }) => setHtml(content, 'setHTML', parseOptions), ɵ30 = () => undo, ɵ31 = () => blockquote;
|
|
31
31
|
const blockCommand = {
|
|
32
32
|
alignCenter: ɵ17,
|
|
33
33
|
alignJustify: ɵ18,
|
|
@@ -44,23 +44,24 @@ const blockCommand = {
|
|
|
44
44
|
outdent: ɵ27,
|
|
45
45
|
redo: ɵ28,
|
|
46
46
|
setHTML: ɵ29,
|
|
47
|
-
undo: ɵ30
|
|
47
|
+
undo: ɵ30,
|
|
48
|
+
blockquote: ɵ31
|
|
48
49
|
};
|
|
49
|
-
const ɵ
|
|
50
|
+
const ɵ32 = attr => insertTable(attr), ɵ33 = () => addColumnBefore, ɵ34 = () => addColumnAfter, ɵ35 = () => addRowBefore, ɵ36 = () => addRowAfter, ɵ37 = () => deleteRow, ɵ38 = () => deleteColumn, ɵ39 = () => mergeCells, ɵ40 = () => splitCell, ɵ41 = () => deleteTable;
|
|
50
51
|
const tableCommand = {
|
|
51
|
-
insertTable: ɵ
|
|
52
|
-
addColumnBefore: ɵ
|
|
53
|
-
addColumnAfter: ɵ
|
|
54
|
-
addRowBefore: ɵ
|
|
55
|
-
addRowAfter: ɵ
|
|
56
|
-
deleteRow: ɵ
|
|
57
|
-
deleteColumn: ɵ
|
|
58
|
-
mergeCells: ɵ
|
|
59
|
-
splitCell: ɵ
|
|
60
|
-
deleteTable: ɵ
|
|
52
|
+
insertTable: ɵ32,
|
|
53
|
+
addColumnBefore: ɵ33,
|
|
54
|
+
addColumnAfter: ɵ34,
|
|
55
|
+
addRowBefore: ɵ35,
|
|
56
|
+
addRowAfter: ɵ36,
|
|
57
|
+
deleteRow: ɵ37,
|
|
58
|
+
deleteColumn: ɵ38,
|
|
59
|
+
mergeCells: ɵ39,
|
|
60
|
+
splitCell: ɵ40,
|
|
61
|
+
deleteTable: ɵ41
|
|
61
62
|
};
|
|
62
63
|
/**
|
|
63
64
|
* @hidden
|
|
64
65
|
*/
|
|
65
66
|
export const editorCommands = Object.assign({}, inlineCommand, blockCommand, tableCommand);
|
|
66
|
-
export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9, ɵ10, ɵ11, ɵ12, ɵ13, ɵ14, ɵ15, ɵ16, ɵ17, ɵ18, ɵ19, ɵ20, ɵ21, ɵ22, ɵ23, ɵ24, ɵ25, ɵ26, ɵ27, ɵ28, ɵ29, ɵ30, ɵ31, ɵ32, ɵ33, ɵ34, ɵ35, ɵ36, ɵ37, ɵ38, ɵ39, ɵ40 };
|
|
67
|
+
export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9, ɵ10, ɵ11, ɵ12, ɵ13, ɵ14, ɵ15, ɵ16, ɵ17, ɵ18, ɵ19, ɵ20, ɵ21, ɵ22, ɵ23, ɵ24, ɵ25, ɵ26, ɵ27, ɵ28, ɵ29, ɵ30, ɵ31, ɵ32, ɵ33, ɵ34, ɵ35, ɵ36, ɵ37, ɵ38, ɵ39, ɵ40, ɵ41 };
|
|
@@ -66,7 +66,7 @@ ColorPickerDialogComponent = tslib_1.__decorate([
|
|
|
66
66
|
<div class="k-edit-form-container k-window-content" style="text-align: center;">
|
|
67
67
|
<kendo-colorpicker
|
|
68
68
|
#colorpicker
|
|
69
|
-
[
|
|
69
|
+
[views]="['palette']"
|
|
70
70
|
[format]="'hex'"
|
|
71
71
|
[attr.title]="title"
|
|
72
72
|
[icon]="icon"
|
|
@@ -123,26 +123,26 @@ FileLinkDialogComponent = tslib_1.__decorate([
|
|
|
123
123
|
<label (click)="hrefInput.focus()">{{ textForWithPrefix('WebAddress') }}</label>
|
|
124
124
|
</div>
|
|
125
125
|
<div class="k-edit-field">
|
|
126
|
-
<input #hrefInput formControlName="href" type="text" class="k-textbox" />
|
|
126
|
+
<input #hrefInput formControlName="href" type="text" class="k-textbox k-input k-rounded-md" />
|
|
127
127
|
</div>
|
|
128
128
|
|
|
129
129
|
<div class="k-edit-label">
|
|
130
130
|
<label (click)="textInput.focus()">{{ textForWithPrefix('Text') }}</label>
|
|
131
131
|
</div>
|
|
132
132
|
<div class="k-edit-field">
|
|
133
|
-
<input #textInput formControlName="text" type="text" class="k-textbox" />
|
|
133
|
+
<input #textInput formControlName="text" type="text" class="k-textbox k-input k-rounded-md" />
|
|
134
134
|
</div>
|
|
135
135
|
|
|
136
136
|
<div class="k-edit-label">
|
|
137
137
|
<label (click)="titleInput.focus()">{{ textForWithPrefix('Title') }}</label>
|
|
138
138
|
</div>
|
|
139
139
|
<div class="k-edit-field">
|
|
140
|
-
<input #titleInput formControlName="title" type="text" class="k-textbox" />
|
|
140
|
+
<input #titleInput formControlName="title" type="text" class="k-textbox k-input k-rounded-md" />
|
|
141
141
|
</div>
|
|
142
142
|
<ng-container *ngIf="command === 'createLink'">
|
|
143
143
|
<div class="k-edit-label"></div>
|
|
144
144
|
<div class="k-edit-field">
|
|
145
|
-
<input type="checkbox" id="k-target-blank"
|
|
145
|
+
<input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />
|
|
146
146
|
<label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix('OpenInNewWindow') }}</label>
|
|
147
147
|
</div>
|
|
148
148
|
</ng-container>
|
|
@@ -101,25 +101,25 @@ ImageDialogComponent = tslib_1.__decorate([
|
|
|
101
101
|
<label [for]="srcInputId">{{ textFor('imageWebAddress') }}</label>
|
|
102
102
|
</div>
|
|
103
103
|
<div class="k-edit-field">
|
|
104
|
-
<input [id]="srcInputId" #srcInput [formControl]="src" type="text" class="k-textbox" />
|
|
104
|
+
<input [id]="srcInputId" #srcInput [formControl]="src" type="text" class="k-textbox k-input k-rounded-md" />
|
|
105
105
|
</div>
|
|
106
106
|
<div class="k-edit-label">
|
|
107
107
|
<label [for]="altTextInputId">{{ textFor('imageAltText') }}</label>
|
|
108
108
|
</div>
|
|
109
109
|
<div class="k-edit-field">
|
|
110
|
-
<input [id]="altTextInputId" [formControl]="alt" type="text" class="k-textbox" />
|
|
110
|
+
<input [id]="altTextInputId" [formControl]="alt" type="text" class="k-textbox k-input k-rounded-md" />
|
|
111
111
|
</div>
|
|
112
112
|
<div class="k-edit-label">
|
|
113
113
|
<label [for]="widthInputId">{{ textFor('imageWidth') }}</label>
|
|
114
114
|
</div>
|
|
115
115
|
<div class="k-edit-field">
|
|
116
|
-
<input [id]="widthInputId" [formControl]="width" type="text" class="k-textbox" />
|
|
116
|
+
<input [id]="widthInputId" [formControl]="width" type="text" class="k-textbox k-input k-rounded-md" />
|
|
117
117
|
</div>
|
|
118
118
|
<div class="k-edit-label">
|
|
119
119
|
<label [for]="heightInputId">{{ textFor('imageHeight') }}</label>
|
|
120
120
|
</div>
|
|
121
121
|
<div class="k-edit-field">
|
|
122
|
-
<input [id]="heightInputId" [formControl]="height" type="text" class="k-textbox" />
|
|
122
|
+
<input [id]="heightInputId" [formControl]="height" type="text" class="k-textbox k-input k-rounded-md" />
|
|
123
123
|
</div>
|
|
124
124
|
</div>
|
|
125
125
|
</div>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { cleanFormatting } from '@progress/kendo-editor-common';
|
|
5
|
+
import { blockquote, cleanFormatting, isIndented } from '@progress/kendo-editor-common';
|
|
6
6
|
import { alignRightRules, alignCenterRules, alignLeftRules, alignJustifyRules, isAligned, bold, italic, underline, strikethrough, subscript, superscript, link, activeNode, hasNode, getActiveMarks, hasMark, expandSelection, indentRules, outdentRules, canIndentAsListItem, canOutdentAsListItem, canBeIndented, undo, redo, addRowBefore, addRowAfter, addColumnBefore, addColumnAfter, deleteRow, deleteColumn, deleteTable, mergeCells, splitCell } from '@progress/kendo-editor-common';
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
@@ -36,6 +36,10 @@ export const getToolbarState = (state, options) => ({
|
|
|
36
36
|
selected: activeNode(state),
|
|
37
37
|
disabled: false
|
|
38
38
|
},
|
|
39
|
+
blockquote: {
|
|
40
|
+
selected: false,
|
|
41
|
+
disabled: !blockquote(state)
|
|
42
|
+
},
|
|
39
43
|
indent: {
|
|
40
44
|
selected: false,
|
|
41
45
|
disabled: !(canIndentAsListItem(state, state.schema.nodes.list_item) || canBeIndented(state, indentRules))
|
|
@@ -58,7 +62,11 @@ export const getToolbarState = (state, options) => ({
|
|
|
58
62
|
},
|
|
59
63
|
outdent: {
|
|
60
64
|
selected: false,
|
|
61
|
-
disabled
|
|
65
|
+
get disabled() {
|
|
66
|
+
return !(hasNode(state, state.schema.nodes.blockquote) ||
|
|
67
|
+
canOutdentAsListItem(state, outdentRules) ||
|
|
68
|
+
isIndented(state, outdentRules.nodes));
|
|
69
|
+
}
|
|
62
70
|
},
|
|
63
71
|
redo: {
|
|
64
72
|
selected: false,
|
|
@@ -184,6 +192,7 @@ export const initialToolBarState = {
|
|
|
184
192
|
format: { selected: { text: 'Format', tag: null }, disabled: false },
|
|
185
193
|
style: { selected: { marks: [], hasNodesWithoutMarks: false }, disabled: false },
|
|
186
194
|
cleanFormatting: { selected: false, disabled: true },
|
|
195
|
+
blockquote: { selected: false, disabled: false },
|
|
187
196
|
//indent
|
|
188
197
|
indent: { selected: false, disabled: false },
|
|
189
198
|
outdent: { selected: false, disabled: false },
|
|
@@ -236,6 +245,7 @@ export const disabledToolBarState = {
|
|
|
236
245
|
format: { selected: { text: 'Format', tag: null }, disabled: true },
|
|
237
246
|
style: { selected: { marks: [], hasNodesWithoutMarks: false }, disabled: true },
|
|
238
247
|
cleanFormatting: { selected: false, disabled: true },
|
|
248
|
+
blockquote: { selected: false, disabled: true },
|
|
239
249
|
//indent
|
|
240
250
|
indent: { selected: false, disabled: true },
|
|
241
251
|
outdent: { selected: false, disabled: true },
|
|
@@ -189,7 +189,7 @@ export declare class EditorComponent implements AfterViewInit, ControlValueAcces
|
|
|
189
189
|
* @param {any} attr - Optional parameters for the command. Apart from the following list,
|
|
190
190
|
* the parameters do not expect specific attributes when you call them:
|
|
191
191
|
* - `format` - Accepts an object with the `tag` property.
|
|
192
|
-
* The supported tags are `p
|
|
192
|
+
* The supported tags are `p` and any of the `h1` to `h6` heading tags.
|
|
193
193
|
* - `createLink` - Accepts an object with the `href`, `title`, and `target` properties. The `href` property is mandatory.
|
|
194
194
|
* - `setHTML` - Accepts a `string` parameter.
|
|
195
195
|
* - `insertTable` - Accepts an object with the `rows` and `cols` properties. The number values are zero based.
|
|
@@ -421,7 +421,7 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
|
|
|
421
421
|
* @param {any} attr - Optional parameters for the command. Apart from the following list,
|
|
422
422
|
* the parameters do not expect specific attributes when you call them:
|
|
423
423
|
* - `format` - Accepts an object with the `tag` property.
|
|
424
|
-
* The supported tags are `p
|
|
424
|
+
* The supported tags are `p` and any of the `h1` to `h6` heading tags.
|
|
425
425
|
* - `createLink` - Accepts an object with the `href`, `title`, and `target` properties. The `href` property is mandatory.
|
|
426
426
|
* - `setHTML` - Accepts a `string` parameter.
|
|
427
427
|
* - `insertTable` - Accepts an object with the `rows` and `cols` properties. The number values are zero based.
|
|
@@ -677,7 +677,7 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
|
|
|
677
677
|
this.subs.add(fromEvent(containerElement, 'focusin')
|
|
678
678
|
.subscribe(() => {
|
|
679
679
|
if (this.readonly) {
|
|
680
|
-
contentAreaClasslist.add('k-
|
|
680
|
+
contentAreaClasslist.add('k-focus');
|
|
681
681
|
}
|
|
682
682
|
if (!this.focusChangedProgrammatically || this.shouldEmitFocus) {
|
|
683
683
|
this.ngZone.run(() => this.onFocus.emit());
|
|
@@ -687,7 +687,7 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
|
|
|
687
687
|
this.subs.add(fromEvent(containerElement, 'focusout')
|
|
688
688
|
.subscribe(() => {
|
|
689
689
|
if (this.readonly) {
|
|
690
|
-
contentAreaClasslist.remove('k-
|
|
690
|
+
contentAreaClasslist.remove('k-focus');
|
|
691
691
|
}
|
|
692
692
|
if (!this.focusChangedProgrammatically) {
|
|
693
693
|
this.ngZone.run(() => this.onBlur.emit());
|
|
@@ -833,7 +833,7 @@ tslib_1.__decorate([
|
|
|
833
833
|
tslib_1.__metadata("design:paramtypes", [])
|
|
834
834
|
], EditorComponent.prototype, "resizableClass", null);
|
|
835
835
|
tslib_1.__decorate([
|
|
836
|
-
HostBinding('class.k-
|
|
836
|
+
HostBinding('class.k-disabled'),
|
|
837
837
|
tslib_1.__metadata("design:type", Boolean),
|
|
838
838
|
tslib_1.__metadata("design:paramtypes", [])
|
|
839
839
|
], EditorComponent.prototype, "isDisabled", null);
|
|
@@ -939,6 +939,8 @@ EditorComponent = EditorComponent_1 = tslib_1.__decorate([
|
|
|
939
939
|
alignRight="Align text right"
|
|
940
940
|
i18n-backColor="kendo.editor.backColor|The title of the tool that changes the text background color."
|
|
941
941
|
backColor="Background color"
|
|
942
|
+
i18n-blockquote="kendo.editor.blockquote|The title of the tool that wraps an element in a blockquote"
|
|
943
|
+
blockquote="Quotation"
|
|
942
944
|
i18n-bold="kendo.editor.bold|The title of the tool that makes text bold."
|
|
943
945
|
bold="Bold"
|
|
944
946
|
i18n-cleanFormatting="kendo.editor.cleanFormatting|The title of the Clean Formatting tool."
|
|
@@ -10,8 +10,7 @@ import { ToolBarModule } from '@progress/kendo-angular-toolbar';
|
|
|
10
10
|
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
11
11
|
import { DialogModule } from '@progress/kendo-angular-dialog';
|
|
12
12
|
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
13
|
-
import { ColorPickerModule } from '@progress/kendo-angular-inputs';
|
|
14
|
-
import { NumericTextBoxModule, TextBoxModule } from '@progress/kendo-angular-inputs';
|
|
13
|
+
import { NumericTextBoxModule, TextBoxModule, ColorPickerModule, CheckBoxModule } from '@progress/kendo-angular-inputs';
|
|
15
14
|
import { EditorComponent } from './editor.component';
|
|
16
15
|
import { ImageDialogComponent } from './dialogs/image-dialog.component';
|
|
17
16
|
import { SourceDialogComponent } from './dialogs/source-dialog.component';
|
|
@@ -30,6 +29,7 @@ import { EditorAlignLeftButtonDirective } from './tools/alignment/editor-align-l
|
|
|
30
29
|
import { EditorAlignCenterButtonDirective } from './tools/alignment/editor-align-center-button.directive';
|
|
31
30
|
import { EditorAlignRightButtonDirective } from './tools/alignment/editor-align-right-button.directive';
|
|
32
31
|
import { EditorAlignJustifyButtonDirective } from './tools/alignment/editor-align-justify-button.directive';
|
|
32
|
+
import { EditorBlockquoteDirective } from './tools/blockquote/editor-blockquote-button.directive';
|
|
33
33
|
import { EditorRedoButtonDirective } from './tools/history/editor-redo-button.directive';
|
|
34
34
|
import { EditorUndoButtonDirective } from './tools/history/editor-undo-button.directive';
|
|
35
35
|
import { EditorInsertImageButtonDirective } from './tools/image/editor-insert-image-button.directive';
|
|
@@ -123,7 +123,9 @@ const COMPONENT_DIRECTIVES = [
|
|
|
123
123
|
// print
|
|
124
124
|
EditorPrintDirective,
|
|
125
125
|
// select all
|
|
126
|
-
EditorSelectAllButtonDirective
|
|
126
|
+
EditorSelectAllButtonDirective,
|
|
127
|
+
// blockquote
|
|
128
|
+
EditorBlockquoteDirective
|
|
127
129
|
];
|
|
128
130
|
const TOOLBAR_TOOLS = [
|
|
129
131
|
EditorFontSizeComponent,
|
|
@@ -227,6 +229,7 @@ EditorModule = tslib_1.__decorate([
|
|
|
227
229
|
DialogModule,
|
|
228
230
|
DropDownsModule,
|
|
229
231
|
NumericTextBoxModule,
|
|
232
|
+
CheckBoxModule,
|
|
230
233
|
ToolBarModule,
|
|
231
234
|
TextBoxModule
|
|
232
235
|
]
|
package/dist/es2015/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export * from './main';
|
|
9
9
|
export { DialogCommand, EditorCommand } from './common/commands';
|
|
10
|
+
export { semanticNodes, semanticTagNames } from './config/semantic-nodes';
|
|
10
11
|
export { ColorPickerDialogComponent } from './dialogs/colorpicker-dialog.component';
|
|
11
12
|
export { FileLinkDialogComponent } from './dialogs/file-link-dialog.component';
|
|
12
13
|
export { FontFamilyDialogComponent } from './dialogs/font-family-dialog.component';
|
|
@@ -23,6 +24,7 @@ export { EditorAlignCenterButtonDirective } from './tools/alignment/editor-align
|
|
|
23
24
|
export { EditorAlignJustifyButtonDirective } from './tools/alignment/editor-align-justify-button.directive';
|
|
24
25
|
export { EditorAlignLeftButtonDirective } from './tools/alignment/editor-align-left-button.directive';
|
|
25
26
|
export { EditorAlignRightButtonDirective } from './tools/alignment/editor-align-right-button.directive';
|
|
27
|
+
export { EditorBlockquoteDirective } from './tools/blockquote/editor-blockquote-button.directive';
|
|
26
28
|
export { EditorBackColorDirective } from './tools/colorpicker/editor-back-color.directive';
|
|
27
29
|
export { EditorColorPickerComponent } from './tools/colorpicker/editor-colorpicker.component';
|
|
28
30
|
export { EditorForeColorDirective } from './tools/colorpicker/editor-fore-color.directive';
|
package/dist/es2015/index.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* Generated bundle index. Do not edit.
|
|
7
7
|
*/
|
|
8
8
|
export * from './main';
|
|
9
|
+
export { semanticNodes, semanticTagNames } from './config/semantic-nodes';
|
|
9
10
|
export { ColorPickerDialogComponent } from './dialogs/colorpicker-dialog.component';
|
|
10
11
|
export { FileLinkDialogComponent } from './dialogs/file-link-dialog.component';
|
|
11
12
|
export { FontFamilyDialogComponent } from './dialogs/font-family-dialog.component';
|
|
@@ -22,6 +23,7 @@ export { EditorAlignCenterButtonDirective } from './tools/alignment/editor-align
|
|
|
22
23
|
export { EditorAlignJustifyButtonDirective } from './tools/alignment/editor-align-justify-button.directive';
|
|
23
24
|
export { EditorAlignLeftButtonDirective } from './tools/alignment/editor-align-left-button.directive';
|
|
24
25
|
export { EditorAlignRightButtonDirective } from './tools/alignment/editor-align-right-button.directive';
|
|
26
|
+
export { EditorBlockquoteDirective } from './tools/blockquote/editor-blockquote-button.directive';
|
|
25
27
|
export { EditorBackColorDirective } from './tools/colorpicker/editor-back-color.directive';
|
|
26
28
|
export { EditorColorPickerComponent } from './tools/colorpicker/editor-colorpicker.component';
|
|
27
29
|
export { EditorForeColorDirective } from './tools/colorpicker/editor-fore-color.directive';
|