@progress/kendo-react-editor 5.10.0-dev.202301051045 → 5.10.0-dev.202301092204
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-react-editor.js +1 -1
- package/dist/es/Editor.js +2 -2
- package/dist/es/dialogs/FindReplace.js +24 -23
- package/dist/es/dialogs/insertImage.js +26 -24
- package/dist/es/dialogs/insertLink.js +19 -16
- package/dist/es/dialogs/viewHtml.js +5 -8
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/Editor.js +2 -2
- package/dist/npm/dialogs/FindReplace.js +24 -23
- package/dist/npm/dialogs/insertImage.js +25 -23
- package/dist/npm/dialogs/insertLink.js +18 -15
- package/dist/npm/dialogs/viewHtml.js +4 -7
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-editor.js +1 -1
- package/package.json +12 -12
|
@@ -32,6 +32,7 @@ var kendo_editor_common_1 = require("@progress/kendo-editor-common");
|
|
|
32
32
|
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
33
33
|
var messages_1 = require("./../messages");
|
|
34
34
|
var props_key_1 = require("./../utils/props-key");
|
|
35
|
+
var kendo_react_inputs_1 = require("@progress/kendo-react-inputs");
|
|
35
36
|
/**
|
|
36
37
|
* @hidden
|
|
37
38
|
*/
|
|
@@ -57,19 +58,15 @@ var ViewHtmlDialog = /** @class */ (function (_super) {
|
|
|
57
58
|
* @hidden
|
|
58
59
|
*/
|
|
59
60
|
ViewHtmlDialog.prototype.render = function () {
|
|
60
|
-
var _this = this;
|
|
61
61
|
var _a = this.props, view = _a.view, settings = _a.settings, dir = _a.dir, render = _a.render;
|
|
62
62
|
var localization = (0, kendo_react_intl_1.provideLocalizationService)(this);
|
|
63
63
|
var _b = settings.messages, viewHtmlDialogTitle = _b.viewHtmlDialogTitle, viewHtmlCancel = _b.viewHtmlCancel, viewHtmlUpdate = _b.viewHtmlUpdate;
|
|
64
|
-
var content = (React.createElement(
|
|
65
|
-
height: '280px',
|
|
66
|
-
width: '490px'
|
|
67
|
-
}, ref: function (e) { return _this.htmlArea = e; }, defaultValue: (0, kendo_editor_common_1.indentHtml)((0, kendo_editor_common_1.getHtml)(view.state)), autoFocus: true }));
|
|
64
|
+
var content = (React.createElement(kendo_react_inputs_1.TextArea, { className: "k-editor-textarea", defaultValue: (0, kendo_editor_common_1.indentHtml)((0, kendo_editor_common_1.getHtml)(view.state)), autoFocus: true, autoSize: true }));
|
|
68
65
|
var actionButtons = [(React.createElement(kendo_react_buttons_1.Button, { onClick: this.onClose, dir: dir, key: "cancel" }, localization.toLanguageString(viewHtmlCancel, messages_1.messages[viewHtmlCancel]))), (React.createElement(kendo_react_buttons_1.Button, { onClick: this.onUpdate, themeColor: 'primary', dir: dir, key: "update" }, localization.toLanguageString(viewHtmlUpdate, messages_1.messages[viewHtmlUpdate])))
|
|
69
66
|
];
|
|
70
|
-
var dialog = (React.createElement(kendo_react_dialogs_1.
|
|
67
|
+
var dialog = (React.createElement(kendo_react_dialogs_1.Window, { className: 'k-editor-window', title: localization.toLanguageString(viewHtmlDialogTitle, messages_1.messages[viewHtmlDialogTitle]), onClose: this.onClose, key: "dialog", style: dir === 'rtl' ? { textAlign: 'right' } : undefined, appendTo: document.body, modal: true, minimizeButton: function () { return null; }, maximizeButton: function () { return null; }, resizable: false },
|
|
71
68
|
content,
|
|
72
|
-
React.createElement.apply(React, __spreadArray([kendo_react_dialogs_1.
|
|
69
|
+
React.createElement.apply(React, __spreadArray([kendo_react_dialogs_1.WindowActionsBar, null], actionButtons, false))));
|
|
73
70
|
return render ? render(dialog, { content: content, actionButtons: actionButtons }) : dialog;
|
|
74
71
|
};
|
|
75
72
|
return ViewHtmlDialog;
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-editor',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1673300890,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
14
14
|
};
|