Item14819: lost content on specific editor interactions
Priority: Urgent
Current State: Closed
Released In: 2.1.7
Target Release: patch
Applies To: Extension
Component: TinyMCEPlugin
Branches: Release02x01 master
How to reproduce:
- edit a topic in wysiwyg mode
- switch to raw mode
- make a change
- preview it
- switch back to wysiwyg
- make more changes
- hit save (or preview)
Step 7 won't show the changes made in step 6. The error only exists on the Release02* branch, not on master.
Please the following hot fix which seems to cure the problem as by now:
diff --git a/TinyMCEPlugin/pub/System/TinyMCEPlugin/foswiki_tiny.uncompressed.js b/TinyMCEPlugin/pub/System/TinyMCEPlugin/foswiki_tiny.uncompressed.js
index 3b46673a3..45db21b7b 100644
--- a/TinyMCEPlugin/pub/System/TinyMCEPlugin/foswiki_tiny.uncompressed.js
+++ b/TinyMCEPlugin/pub/System/TinyMCEPlugin/foswiki_tiny.uncompressed.js
@@ -289,6 +289,7 @@ var FoswikiTiny = {
}
editor.setContent(text);
editor.isNotDirty = true;
+ editor.initialized = true; // Oops-err make sure the editor is enabled again
FoswikiTiny.enableSaveButton(true);
// Hide the conversion button, if it exists
--
MichaelDaum - 11 Feb 2019