devexpress-richedit 24.1.10-build-25037-0102 → 24.1.10
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/dx.richedit.js
CHANGED
@@ -109844,7 +109844,6 @@ class UpdateFieldCommand extends UpdateFieldCommandBase {
|
|
109844
109844
|
}
|
109845
109845
|
|
109846
109846
|
;// CONCATENATED MODULE: ./src/common/focus-manager.ts
|
109847
|
-
|
109848
109847
|
class FocusManager {
|
109849
109848
|
constructor(canvasManager, owner, inputController, eventManager) {
|
109850
109849
|
this.canvasManager = canvasManager;
|
@@ -109864,9 +109863,7 @@ class FocusManager {
|
|
109864
109863
|
captureFocus() {
|
109865
109864
|
if (this.owner.canCaptureFocus()) {
|
109866
109865
|
this.owner.onCaptureFocus();
|
109867
|
-
|
109868
|
-
browser.Browser.MacOSMobilePlatform && window.self !== window.top)
|
109869
|
-
this.inputController.captureFocus();
|
109866
|
+
this.inputController.captureFocus();
|
109870
109867
|
this.eventManager.onFocusIn();
|
109871
109868
|
}
|
109872
109869
|
}
|
@@ -110647,15 +110644,16 @@ class DivInputEditor extends InputEditorBase {
|
|
110647
110644
|
this.cursorWasSetOnLastPosition = true;
|
110648
110645
|
}
|
110649
110646
|
setEditableDocumentContent(content) {
|
110647
|
+
if (!content) {
|
110648
|
+
this.clearInputElement();
|
110649
|
+
return;
|
110650
|
+
}
|
110650
110651
|
if (typeof content === "string")
|
110651
110652
|
this.inputElement.innerHTML = content;
|
110652
|
-
else
|
110653
|
+
else {
|
110653
110654
|
this.inputElement.innerHTML = "";
|
110654
|
-
|
110655
|
-
this.inputElement.appendChild(content[i]);
|
110655
|
+
content.forEach((node) => this.inputElement.appendChild(node));
|
110656
110656
|
}
|
110657
|
-
else
|
110658
|
-
this.clearInputElement();
|
110659
110657
|
}
|
110660
110658
|
setEditableDocumentCursorPosition(cursorPosition) {
|
110661
110659
|
let textLength = this.getEditableDocumentFullText().length;
|
@@ -110824,8 +110822,9 @@ class IFrameInputEditor extends InputEditorBase {
|
|
110824
110822
|
else
|
110825
110823
|
dom.DomUtils.setFocus(this.control.readOnly == ReadOnlyMode.Persistent ? this.inputElement : this.editableDocument.body);
|
110826
110824
|
}
|
110827
|
-
setPosition(left, top) {
|
110828
|
-
|
110825
|
+
setPosition(left, top, force = false) {
|
110826
|
+
if (this.IMEState === IMEState.None || force)
|
110827
|
+
super.setPosition(left, top);
|
110829
110828
|
if (left && top)
|
110830
110829
|
this.selectEditableDocumentContent();
|
110831
110830
|
}
|
@@ -110960,11 +110959,12 @@ class IFrameInputEditor extends InputEditorBase {
|
|
110960
110959
|
const layoutPoint = new LayoutPoint(layoutPosition.pageIndex, layoutX, layoutPosition.getLayoutY(DocumentLayoutDetailsLevel.Row));
|
110961
110960
|
const pageElement = this.control.viewManager.cache[layoutPoint.pageIndex].page;
|
110962
110961
|
layoutPoint.offset(pageElement.offsetLeft, pageElement.offsetTop);
|
110963
|
-
this.setPosition(layoutPoint.x, layoutPoint.y);
|
110962
|
+
this.setPosition(layoutPoint.x, layoutPoint.y, true);
|
110964
110963
|
this.editableDocument.body.style.textIndent = this.previousText.length ? currentTextIndent :
|
110965
110964
|
layoutPosition.getLayoutX(this.control.measurer, DocumentLayoutDetailsLevel.Box) +
|
110966
110965
|
layoutPosition.box.getCharOffsetXInPixels(this.control.measurer, layoutPosition.charOffset) - layoutX + "px";
|
110967
110966
|
this.inputElement.style.width = layoutPosition.row.width + "px";
|
110967
|
+
this.inputElement.style.minWidth = layoutPosition.row.width + "px";
|
110968
110968
|
if (browser.Browser.IE || browser.Browser.Edge) {
|
110969
110969
|
this.editableDocument.body.style.width = this.inputElement.style.width;
|
110970
110970
|
this.editableDocument.body.style.height = this.inputElement.style.height = layoutPosition.row.height + "px";
|
@@ -141543,7 +141543,7 @@ class ClientRichEdit {
|
|
141543
141543
|
this.contextMenuSettings = settings.contextMenuSettings;
|
141544
141544
|
this.fullScreenHelper = new FullScreenHelper(element);
|
141545
141545
|
if (true)
|
141546
|
-
external_DevExpress_config_default()(JSON.parse(atob('
|
141546
|
+
external_DevExpress_config_default()(JSON.parse(atob('eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaVZIWXphbFZEUnpoV1ZUSTRWMUZOYkVaUlJrVlRVU0lLZlE9PS5QMlRnaUloY2ZZcHl5Vi9KTjFoL3ptVWtUaGh5MW1Za0NpbUdzVHJ4alpTRlRGUENjQ3h6aS9nZXY0L3VhMU8wUDQyYlJKaGZFRnFPSTI1WE95YmZ1UW5FRTFMeGFrWDFuQkRMOVdPYTNTcVFDQ3dSQnJycnowcmZLTUtzS2Rma08xSlVWZz09In0=')));
|
141547
141547
|
this.prepareElement(element, settings);
|
141548
141548
|
this.initDefaultFontsAndStyles();
|
141549
141549
|
this.initBars(settings.ribbon, settings.fonts);
|