@ones-editor/editor 0.0.7-beta.52 → 0.0.7-beta.53
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +13 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22152,7 +22152,13 @@ var __publicField = (obj, key, value) => {
|
|
|
22152
22152
|
this.callbacks.onCompositionStart(event);
|
|
22153
22153
|
});
|
|
22154
22154
|
__publicField(this, "handleCompositionend", (event) => {
|
|
22155
|
-
|
|
22155
|
+
if (isSafari()) {
|
|
22156
|
+
setTimeout(() => {
|
|
22157
|
+
this.composing = false;
|
|
22158
|
+
}, 100);
|
|
22159
|
+
} else {
|
|
22160
|
+
this.composing = false;
|
|
22161
|
+
}
|
|
22156
22162
|
this.callbacks.onUpdateCompositionText(event, this.inputElement.value, true);
|
|
22157
22163
|
this.inputElement.value = "";
|
|
22158
22164
|
});
|
|
@@ -22173,6 +22179,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22173
22179
|
}
|
|
22174
22180
|
});
|
|
22175
22181
|
__publicField(this, "handleKeyDown", (event) => {
|
|
22182
|
+
console.log("handleKeyDown");
|
|
22176
22183
|
if (this.composing) {
|
|
22177
22184
|
return;
|
|
22178
22185
|
}
|
|
@@ -22795,6 +22802,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22795
22802
|
const deleteCount = to - from;
|
|
22796
22803
|
const actions = createDeleteOps(from, deleteCount);
|
|
22797
22804
|
editor.doc.localUpdateBlockText(containerId, blockIndex, actions, options);
|
|
22805
|
+
console.log("delete");
|
|
22798
22806
|
return deleteCount;
|
|
22799
22807
|
}
|
|
22800
22808
|
const logger$30 = getLogger("break-text-block");
|
|
@@ -27504,6 +27512,10 @@ var __publicField = (obj, key, value) => {
|
|
|
27504
27512
|
this.compositingText = "";
|
|
27505
27513
|
if (!isFirefox()) {
|
|
27506
27514
|
editorInsertText(this, text2);
|
|
27515
|
+
} else {
|
|
27516
|
+
if (!text2) {
|
|
27517
|
+
editorClearCompositionText(this);
|
|
27518
|
+
}
|
|
27507
27519
|
}
|
|
27508
27520
|
} else {
|
|
27509
27521
|
this.compositingText = text2;
|