@tinymce/tinymce-react
Advanced tools
Comparing version 3.10.4-rc.20210304002750751.5e01f15 to 3.10.4-rc.20210310103028389.e002bdd
@@ -7,2 +7,7 @@ # Change log | ||
## [3.10.4] - 2021-03-10 | ||
### Fixed | ||
- Check for editor changes on `"compositionend"` event to more accurately trigger `onEditorChange`. INT-2348 | ||
- Updated dependencies to latest available | ||
## [3.10.3] - 2021-03-04 | ||
@@ -9,0 +14,0 @@ ### Fixed |
@@ -129,3 +129,3 @@ "use strict"; | ||
if (editor) { | ||
editor.off('change keyup setcontent', this.handleEditorChange); | ||
editor.off('change keyup compositionend setcontent', this.handleEditorChange); | ||
Object.keys(this.boundHandlers).forEach(function (eventName) { | ||
@@ -188,6 +188,6 @@ editor.off(eventName, _this.boundHandlers[eventName]); | ||
if (!wasControlled && nowControlled) { | ||
this.editor.on('change keyup setcontent', this.handleEditorChange); | ||
this.editor.on('change keyup compositionend setcontent', this.handleEditorChange); | ||
} | ||
else if (wasControlled && !nowControlled) { | ||
this.editor.off('change keyup setcontent', this.handleEditorChange); | ||
this.editor.off('change keyup compositionend setcontent', this.handleEditorChange); | ||
} | ||
@@ -194,0 +194,0 @@ } |
@@ -126,3 +126,3 @@ /** | ||
if (editor) { | ||
editor.off('change keyup setcontent', this.handleEditorChange); | ||
editor.off('change keyup compositionend setcontent', this.handleEditorChange); | ||
Object.keys(this.boundHandlers).forEach(function (eventName) { | ||
@@ -185,6 +185,6 @@ editor.off(eventName, _this.boundHandlers[eventName]); | ||
if (!wasControlled && nowControlled) { | ||
this.editor.on('change keyup setcontent', this.handleEditorChange); | ||
this.editor.on('change keyup compositionend setcontent', this.handleEditorChange); | ||
} | ||
else if (wasControlled && !nowControlled) { | ||
this.editor.off('change keyup setcontent', this.handleEditorChange); | ||
this.editor.off('change keyup compositionend setcontent', this.handleEditorChange); | ||
} | ||
@@ -191,0 +191,0 @@ } |
@@ -36,6 +36,6 @@ { | ||
"devDependencies": { | ||
"@babel/core": "^7.13.8", | ||
"@babel/core": "^7.13.10", | ||
"@ephox/agar": "^5.2.1", | ||
"@ephox/bedrock-client": "^11.1.1", | ||
"@ephox/bedrock-server": "^11.1.1", | ||
"@ephox/bedrock-server": "^11.2.0", | ||
"@ephox/katamari": "^7.1.3", | ||
@@ -51,6 +51,6 @@ "@ephox/mcagar": "^6.0.1", | ||
"@tinymce/miniature": "^3.1.1", | ||
"@types/node": "^14.14.31", | ||
"@types/node": "^14.14.33", | ||
"@types/prop-types": "^15.5.8", | ||
"@types/react": "^17.0.2", | ||
"@types/react-dom": "^17.0.1", | ||
"@types/react": "^17.0.3", | ||
"@types/react-dom": "^17.0.2", | ||
"@types/storybook__addon-info": "^5.2.3", | ||
@@ -68,7 +68,7 @@ "@types/storybook__react": "^5.2.1", | ||
"ts-loader": "^8.0.17", | ||
"typescript": "^4.2.2", | ||
"webpack": "^5.24.3" | ||
"typescript": "^4.2.3", | ||
"webpack": "^5.24.4" | ||
}, | ||
"version": "3.10.4-rc.20210304002750751.5e01f15", | ||
"version": "3.10.4-rc.20210310103028389.e002bdd", | ||
"name": "@tinymce/tinymce-react" | ||
} |
64749