@progress/kendo-react-editor 9.4.0-develop.23 → 9.4.0-develop.3
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/Editor.js +1 -1
- package/Editor.mjs +1 -0
- package/NOTICE.txt +51 -40
- package/config/defaultStyles.js +1 -1
- package/config/defaultStyles.mjs +1 -0
- package/config/shortcuts.js +1 -1
- package/config/shortcuts.mjs +9 -8
- package/config/toolsSettings.js +1 -1
- package/config/toolsSettings.mjs +1 -0
- package/dialogs/FindReplace.js +1 -1
- package/dialogs/FindReplace.mjs +1 -0
- package/dialogs/index.js +1 -1
- package/dialogs/index.mjs +1 -0
- package/dialogs/insertImage.js +1 -1
- package/dialogs/insertImage.mjs +1 -0
- package/dialogs/insertLink.js +1 -1
- package/dialogs/insertLink.mjs +11 -10
- package/dialogs/viewHtml.js +1 -1
- package/dialogs/viewHtml.mjs +6 -5
- package/dist/cdn/js/kendo-react-editor.js +1 -8
- package/index.js +1 -2
- package/index.mjs +7 -7
- package/messages/index.js +1 -1
- package/messages/index.mjs +1 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +3 -2
- package/package.json +14 -14
- package/tools/align.js +1 -1
- package/tools/align.mjs +5 -4
- package/tools/applyColor.js +1 -1
- package/tools/applyColor.mjs +6 -5
- package/tools/cleanFormatting.js +1 -1
- package/tools/cleanFormatting.mjs +9 -8
- package/tools/findReplace.js +1 -1
- package/tools/findReplace.mjs +10 -9
- package/tools/fontStyle.js +1 -1
- package/tools/fontStyle.mjs +7 -6
- package/tools/formatBlock.js +1 -1
- package/tools/formatBlock.mjs +11 -10
- package/tools/history.js +1 -1
- package/tools/history.mjs +3 -2
- package/tools/indent.js +1 -1
- package/tools/indent.mjs +1 -0
- package/tools/index.js +1 -1
- package/tools/index.mjs +1 -0
- package/tools/inlineFormat.js +1 -1
- package/tools/inlineFormat.mjs +5 -4
- package/tools/insertImage.js +1 -1
- package/tools/insertImage.mjs +5 -4
- package/tools/insertLink.js +1 -1
- package/tools/insertLink.mjs +14 -13
- package/tools/insertTable/popup.js +1 -1
- package/tools/insertTable/popup.mjs +5 -4
- package/tools/insertTable/popupGrid.js +1 -1
- package/tools/insertTable/popupGrid.mjs +1 -0
- package/tools/insertTable/tool.js +1 -1
- package/tools/insertTable/tool.mjs +1 -0
- package/tools/lists-styled.js +1 -1
- package/tools/lists-styled.mjs +1 -0
- package/tools/lists.js +1 -1
- package/tools/lists.mjs +14 -13
- package/tools/outdent.js +1 -1
- package/tools/outdent.mjs +1 -0
- package/tools/pdf.js +1 -1
- package/tools/pdf.mjs +5 -4
- package/tools/print.js +1 -1
- package/tools/print.mjs +5 -4
- package/tools/proseMirrorTool.js +1 -1
- package/tools/proseMirrorTool.mjs +9 -8
- package/tools/selectAll.js +1 -1
- package/tools/selectAll.mjs +6 -5
- package/tools/table-wizard/cellPropsUtils.js +1 -1
- package/tools/table-wizard/cellPropsUtils.mjs +35 -34
- package/tools/table-wizard/tableCellProperties.js +1 -1
- package/tools/table-wizard/tableCellProperties.mjs +1 -0
- package/tools/table-wizard/tableProperties.js +1 -1
- package/tools/table-wizard/tableProperties.mjs +45 -44
- package/tools/table-wizard/tablePropsUtils.js +1 -1
- package/tools/table-wizard/tablePropsUtils.mjs +100 -99
- package/tools/table-wizard/utils.js +1 -1
- package/tools/table-wizard/utils.mjs +18 -17
- package/tools/tableEdit.js +1 -1
- package/tools/tableEdit.mjs +3 -2
- package/tools/unlink.js +1 -1
- package/tools/unlink.mjs +9 -8
- package/tools/utils.js +1 -1
- package/tools/utils.mjs +1 -0
- package/tools/viewHtml.js +1 -1
- package/tools/viewHtml.mjs +12 -11
- package/utils/browser-detection.js +1 -1
- package/utils/browser-detection.mjs +1 -0
- package/utils/controlled-value.js +1 -1
- package/utils/controlled-value.mjs +3 -2
- package/utils/index.js +1 -1
- package/utils/index.mjs +1 -0
- package/utils/props-key.js +1 -1
- package/utils/props-key.mjs +4 -3
package/dialogs/viewHtml.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),h=require("@progress/kendo-react-dialogs"),f=require("@progress/kendo-react-buttons"),r=require("@progress/kendo-editor-common"),w=require("@progress/kendo-react-intl"),l=require("../messages/index.js"),y=require("../utils/props-key.js"),C=require("@progress/kendo-react-inputs");function A(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const i=A(v);let k=class extends i.Component{constructor(){super(...arguments),this.htmlArea=null,this.textAreaRef=e=>{this.htmlArea=e;const t=e&&e.element.current;t&&(t.style.resize="none")},this.onUpdate=()=>{const{view:e,settings:t}=this.props,o=r.trimWhitespace(this.htmlArea&&this.htmlArea.value||""),{preserveWhitespace:s}=y.editorPropsKey.getState(e.state);r.setHtml(o,t.commandName,{preserveWhitespace:s})(e.state,e.dispatch),this.onClose()},this.onClose=()=>{this.props.view.focus(),this.props.onClose()}}render(){const{view:e,settings:t,dir:o,render:s}=this.props,a=w.provideLocalizationService(this),{viewHtmlDialogTitle:c,viewHtmlCancel:u,viewHtmlUpdate:m}=t.messages,d=i.createElement(C.TextArea,{className:"k-editor-textarea",defaultValue:r.indentHtml(r.getHtml(e.state)),autoFocus:!0,autoSize:!1,ref:this.textAreaRef}),g=[i.createElement(f.Button,{onClick:this.onClose,dir:o,key:"cancel"},a.toLanguageString(u,l.messages[u])),i.createElement(f.Button,{onClick:this.onUpdate,themeColor:"primary",dir:o,key:"update"},a.toLanguageString(m,l.messages[m]))],p=i.createElement(h.Window,{className:"k-editor-window",title:a.toLanguageString(c,l.messages[c]),onClose:this.onClose,key:"dialog",style:o==="rtl"?{textAlign:"right"}:void 0,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!0,initialHeight:400,initialWidth:500},d,i.createElement(h.WindowActionsBar,null,...g));return s?s(p,{content:d,actionButtons:g}):p}};w.registerForLocalization(k);exports.ViewHtmlDialog=k;
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),h=require("@progress/kendo-react-dialogs"),f=require("@progress/kendo-react-buttons"),r=require("@progress/kendo-editor-common"),w=require("@progress/kendo-react-intl"),l=require("../messages/index.js"),y=require("../utils/props-key.js"),C=require("@progress/kendo-react-inputs");function A(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const i=A(v);let k=class extends i.Component{constructor(){super(...arguments),this.htmlArea=null,this.textAreaRef=e=>{this.htmlArea=e;const t=e&&e.element.current;t&&(t.style.resize="none")},this.onUpdate=()=>{const{view:e,settings:t}=this.props,o=r.trimWhitespace(this.htmlArea&&this.htmlArea.value||""),{preserveWhitespace:s}=y.editorPropsKey.getState(e.state);r.setHtml(o,t.commandName,{preserveWhitespace:s})(e.state,e.dispatch),this.onClose()},this.onClose=()=>{this.props.view.focus(),this.props.onClose()}}render(){const{view:e,settings:t,dir:o,render:s}=this.props,a=w.provideLocalizationService(this),{viewHtmlDialogTitle:c,viewHtmlCancel:u,viewHtmlUpdate:m}=t.messages,d=i.createElement(C.TextArea,{className:"k-editor-textarea",defaultValue:r.indentHtml(r.getHtml(e.state)),autoFocus:!0,autoSize:!1,ref:this.textAreaRef}),g=[i.createElement(f.Button,{onClick:this.onClose,dir:o,key:"cancel"},a.toLanguageString(u,l.messages[u])),i.createElement(f.Button,{onClick:this.onUpdate,themeColor:"primary",dir:o,key:"update"},a.toLanguageString(m,l.messages[m]))],p=i.createElement(h.Window,{className:"k-editor-window",title:a.toLanguageString(c,l.messages[c]),onClose:this.onClose,key:"dialog",style:o==="rtl"?{textAlign:"right"}:void 0,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!0,initialHeight:400,initialWidth:500},d,i.createElement(h.WindowActionsBar,null,...g));return s?s(p,{content:d,actionButtons:g}):p}};w.registerForLocalization(k);exports.ViewHtmlDialog=k;
|
package/dialogs/viewHtml.mjs
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
+
"use client";
|
|
8
9
|
import * as i from "react";
|
|
9
10
|
import { Window as g, WindowActionsBar as d } from "@progress/kendo-react-dialogs";
|
|
10
11
|
import { Button as u } from "@progress/kendo-react-buttons";
|
|
11
12
|
import { trimWhitespace as f, setHtml as w, indentHtml as v, getHtml as C } from "@progress/kendo-editor-common";
|
|
12
13
|
import { registerForLocalization as A, provideLocalizationService as H } from "@progress/kendo-react-intl";
|
|
13
|
-
import { messages as
|
|
14
|
+
import { messages as r } from "../messages/index.mjs";
|
|
14
15
|
import { editorPropsKey as x } from "../utils/props-key.mjs";
|
|
15
16
|
import { TextArea as z } from "@progress/kendo-react-inputs";
|
|
16
17
|
let k = class extends i.Component {
|
|
@@ -30,7 +31,7 @@ let k = class extends i.Component {
|
|
|
30
31
|
* @hidden
|
|
31
32
|
*/
|
|
32
33
|
render() {
|
|
33
|
-
const { view: t, settings: e, dir: o, render: s } = this.props,
|
|
34
|
+
const { view: t, settings: e, dir: o, render: s } = this.props, n = H(this), { viewHtmlDialogTitle: a, viewHtmlCancel: l, viewHtmlUpdate: m } = e.messages, c = /* @__PURE__ */ i.createElement(
|
|
34
35
|
z,
|
|
35
36
|
{
|
|
36
37
|
className: "k-editor-textarea",
|
|
@@ -40,13 +41,13 @@ let k = class extends i.Component {
|
|
|
40
41
|
ref: this.textAreaRef
|
|
41
42
|
}
|
|
42
43
|
), h = [
|
|
43
|
-
/* @__PURE__ */ i.createElement(u, { onClick: this.onClose, dir: o, key: "cancel" },
|
|
44
|
-
/* @__PURE__ */ i.createElement(u, { onClick: this.onUpdate, themeColor: "primary", dir: o, key: "update" },
|
|
44
|
+
/* @__PURE__ */ i.createElement(u, { onClick: this.onClose, dir: o, key: "cancel" }, n.toLanguageString(l, r[l])),
|
|
45
|
+
/* @__PURE__ */ i.createElement(u, { onClick: this.onUpdate, themeColor: "primary", dir: o, key: "update" }, n.toLanguageString(m, r[m]))
|
|
45
46
|
], p = /* @__PURE__ */ i.createElement(
|
|
46
47
|
g,
|
|
47
48
|
{
|
|
48
49
|
className: "k-editor-window",
|
|
49
|
-
title:
|
|
50
|
+
title: n.toLanguageString(a, r[a]),
|
|
50
51
|
onClose: this.onClose,
|
|
51
52
|
key: "dialog",
|
|
52
53
|
style: o === "rtl" ? { textAlign: "right" } : void 0,
|