@tinymce/tinymce-react
Advanced tools
Comparing version 3.12.2-rc.20210330014304045.113b6c5 to 3.12.2-rc.20210401001157199.65a800f
@@ -7,5 +7,7 @@ # Change log | ||
## Unreleased | ||
## 3.12.2 - 2021-04-01 | ||
### Fixed | ||
- Updated dependencies to latest available | ||
- Slowed down the change rollback to 200 milliseconds to allow async frameworks a chance to set the value. #INT-2475 | ||
- Fixed cursor position recording for rolling back formatting-only changes. | ||
- Updated dependencies | ||
@@ -12,0 +14,0 @@ ## 3.12.1 - 2021-03-30 |
@@ -43,3 +43,3 @@ "use strict"; | ||
var changeEvents = function () { var _a, _b, _c; return ((_c = (_b = (_a = TinyMCE_1.getTinymce()) === null || _a === void 0 ? void 0 : _a.Env) === null || _b === void 0 ? void 0 : _b.browser) === null || _c === void 0 ? void 0 : _c.isIE()) ? 'change keyup compositionend setcontent' : 'change input compositionend setcontent'; }; | ||
var beforeInputEvent = function () { return Utils_1.isBeforeInputEventAvailable() ? 'beforeinput' : 'SelectionChange'; }; | ||
var beforeInputEvent = function () { return Utils_1.isBeforeInputEventAvailable() ? 'beforeinput SelectionChange' : 'SelectionChange'; }; | ||
var Editor = /** @class */ (function (_super) { | ||
@@ -87,4 +87,5 @@ __extends(Editor, _super); | ||
// start a timer and revert to the value if not applied in time | ||
clearTimeout(_this.rollbackTimer); | ||
_this.rollbackTimer = window.setTimeout(_this.rollbackChange, 1); | ||
if (!_this.rollbackTimer) { | ||
_this.rollbackTimer = window.setTimeout(_this.rollbackChange, 200); | ||
} | ||
} | ||
@@ -91,0 +92,0 @@ if (newContent !== _this.currentContent) { |
@@ -40,3 +40,3 @@ /** | ||
var changeEvents = function () { var _a, _b, _c; return ((_c = (_b = (_a = getTinymce()) === null || _a === void 0 ? void 0 : _a.Env) === null || _b === void 0 ? void 0 : _b.browser) === null || _c === void 0 ? void 0 : _c.isIE()) ? 'change keyup compositionend setcontent' : 'change input compositionend setcontent'; }; | ||
var beforeInputEvent = function () { return isBeforeInputEventAvailable() ? 'beforeinput' : 'SelectionChange'; }; | ||
var beforeInputEvent = function () { return isBeforeInputEventAvailable() ? 'beforeinput SelectionChange' : 'SelectionChange'; }; | ||
var Editor = /** @class */ (function (_super) { | ||
@@ -84,4 +84,5 @@ __extends(Editor, _super); | ||
// start a timer and revert to the value if not applied in time | ||
clearTimeout(_this.rollbackTimer); | ||
_this.rollbackTimer = window.setTimeout(_this.rollbackChange, 1); | ||
if (!_this.rollbackTimer) { | ||
_this.rollbackTimer = window.setTimeout(_this.rollbackChange, 200); | ||
} | ||
} | ||
@@ -88,0 +89,0 @@ if (newContent !== _this.currentContent) { |
@@ -69,4 +69,4 @@ { | ||
}, | ||
"version": "3.12.2-rc.20210330014304045.113b6c5", | ||
"version": "3.12.2-rc.20210401001157199.65a800f", | ||
"name": "@tinymce/tinymce-react" | ||
} |
81278
1585