@tinymce/tinymce-react
Advanced tools
Comparing version 3.11.0-feature.20210322062210035.12686c4 to 3.11.0-feature.20210322064626122.2955e0b
@@ -90,8 +90,8 @@ "use strict"; | ||
// check for changes that happened since tinymce.init() was called | ||
var value = _this.getInitialValue(); | ||
var initialValue = _this.getInitialValue(); | ||
_this.currentContent = (_a = _this.currentContent) !== null && _a !== void 0 ? _a : editor.getContent(); | ||
if (!_this.currentContent && _this.currentContent !== value) { | ||
_this.currentContent = value; | ||
if (_this.currentContent !== initialValue) { | ||
_this.currentContent = initialValue; | ||
// same as resetContent in TinyMCE 5 | ||
editor.setContent(value); | ||
editor.setContent(initialValue); | ||
editor.undoManager.clear(); | ||
@@ -98,0 +98,0 @@ editor.undoManager.add(); |
@@ -87,8 +87,8 @@ /** | ||
// check for changes that happened since tinymce.init() was called | ||
var value = _this.getInitialValue(); | ||
var initialValue = _this.getInitialValue(); | ||
_this.currentContent = (_a = _this.currentContent) !== null && _a !== void 0 ? _a : editor.getContent(); | ||
if (!_this.currentContent && _this.currentContent !== value) { | ||
_this.currentContent = value; | ||
if (_this.currentContent !== initialValue) { | ||
_this.currentContent = initialValue; | ||
// same as resetContent in TinyMCE 5 | ||
editor.setContent(value); | ||
editor.setContent(initialValue); | ||
editor.undoManager.clear(); | ||
@@ -95,0 +95,0 @@ editor.undoManager.add(); |
@@ -69,4 +69,4 @@ { | ||
}, | ||
"version": "3.11.0-feature.20210322062210035.12686c4", | ||
"version": "3.11.0-feature.20210322064626122.2955e0b", | ||
"name": "@tinymce/tinymce-react" | ||
} |
70131