comparison 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
comparison
equal deleted inserted replaced
31:4eae156ca604 32:98f11d0cbbd8
6261 } 6261 }
6262 6262
6263 currentSelection = null; 6263 currentSelection = null;
6264 base.blur(); 6264 base.blur();
6265 6265
6266 toggle(sourceEditor);
6267 toggle(wysiwygEditor);
6268
6266 if (isInSourceMode) { 6269 if (isInSourceMode) {
6267 base.setWysiwygEditorValue(base.getSourceEditorValue()); 6270 base.setWysiwygEditorValue(base.getSourceEditorValue());
6268 } else { 6271 } else {
6269 base.setSourceEditorValue(base.getWysiwygEditorValue()); 6272 base.setSourceEditorValue(base.getWysiwygEditorValue());
6270 } 6273 }
6271
6272 toggle(sourceEditor);
6273 toggle(wysiwygEditor);
6274 6274
6275 toggleClass(editorContainer, 'wysiwygMode', isInSourceMode); 6275 toggleClass(editorContainer, 'wysiwygMode', isInSourceMode);
6276 toggleClass(editorContainer, 'sourceMode', !isInSourceMode); 6276 toggleClass(editorContainer, 'sourceMode', !isInSourceMode);
6277 6277
6278 updateToolBar(); 6278 updateToolBar();