Mercurial Hosting > sceditor
diff src/sceditor.js @ 32:98f11d0cbbd8
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 13 Aug 2022 22:37:46 -0600 |
parents | 4eae156ca604 |
children | c23475f3f466 |
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);