@tinymce/tinymce-react
Advanced tools
Comparing version 6.0.0-feature.20250211101340132.sha1969a59 to 6.0.0-feature.20250221032340104.sha1c6ba1a
@@ -9,2 +9,4 @@ # Change log | ||
## 6.0.0 - 2025-02-21 | ||
### Fixed | ||
@@ -11,0 +13,0 @@ - Updated dependencies. #INT-3324 |
@@ -138,3 +138,2 @@ import * as React from 'react'; | ||
private elementRef; | ||
private latestUpdate; | ||
private inline; | ||
@@ -141,0 +140,0 @@ private currentContent?; |
@@ -43,3 +43,2 @@ "use strict"; | ||
var _this = _super.call(this, props) || this; | ||
_this.latestUpdate = null; | ||
_this.rollbackTimer = undefined; | ||
@@ -95,11 +94,3 @@ _this.valueCursor = undefined; | ||
if ((0, Utils_1.isFunction)(_this.props.onEditorChange)) { | ||
if (_this.latestUpdate === null) { | ||
setTimeout(function () { | ||
if (_this.props.onEditorChange && _this.latestUpdate !== null) { | ||
_this.props.onEditorChange(_this.latestUpdate, editor); | ||
_this.latestUpdate = null; | ||
} | ||
}); | ||
} | ||
_this.latestUpdate = newContent; | ||
_this.props.onEditorChange(newContent, editor); | ||
} | ||
@@ -106,0 +97,0 @@ } |
@@ -138,3 +138,2 @@ import * as React from 'react'; | ||
private elementRef; | ||
private latestUpdate; | ||
private inline; | ||
@@ -141,0 +140,0 @@ private currentContent?; |
@@ -40,3 +40,2 @@ var __extends = (this && this.__extends) || (function () { | ||
var _this = _super.call(this, props) || this; | ||
_this.latestUpdate = null; | ||
_this.rollbackTimer = undefined; | ||
@@ -92,11 +91,3 @@ _this.valueCursor = undefined; | ||
if (isFunction(_this.props.onEditorChange)) { | ||
if (_this.latestUpdate === null) { | ||
setTimeout(function () { | ||
if (_this.props.onEditorChange && _this.latestUpdate !== null) { | ||
_this.props.onEditorChange(_this.latestUpdate, editor); | ||
_this.latestUpdate = null; | ||
} | ||
}); | ||
} | ||
_this.latestUpdate = newContent; | ||
_this.props.onEditorChange(newContent, editor); | ||
} | ||
@@ -103,0 +94,0 @@ } |
@@ -79,4 +79,4 @@ { | ||
}, | ||
"version": "6.0.0-feature.20250211101340132.sha1969a59", | ||
"version": "6.0.0-feature.20250221032340104.sha1c6ba1a", | ||
"name": "@tinymce/tinymce-react" | ||
} |
110641
2028