changeset 32:98f11d0cbbd8

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 13 Aug 2022 22:37:46 -0600
parents 4eae156ca604
children c23475f3f466
files src/sceditor.js
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/sceditor.js	Sat Aug 13 21:40:40 2022 -0600
+++ b/src/sceditor.js	Sat Aug 13 22:37:46 2022 -0600
@@ -6263,15 +6263,15 @@
 			currentSelection = null;
 			base.blur();
 
+			toggle(sourceEditor);
+			toggle(wysiwygEditor);
+
 			if (isInSourceMode) {
 				base.setWysiwygEditorValue(base.getSourceEditorValue());
 			} else {
 				base.setSourceEditorValue(base.getWysiwygEditorValue());
 			}
 
-			toggle(sourceEditor);
-			toggle(wysiwygEditor);
-
 			toggleClass(editorContainer, 'wysiwygMode', isInSourceMode);
 			toggleClass(editorContainer, 'sourceMode', !isInSourceMode);