diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2023-04-04 19:34:51 +0000 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2023-04-04 19:34:51 +0000 |
| commit | 16774189c45ac431c73de3f4d5f159a6a570a92c (patch) | |
| tree | 47e1643b3ea227b0a31cb3106d02d91fbe1d567e /resources | |
| parent | 99d7da316b3d5bb448bfcb79d90a22996e693e56 (diff) | |
add marker to textarea on blur, not ckeditor, fixes #2510
Closes #2510
Merge request studip/studip!1700
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/assets/javascripts/lib/wysiwyg.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/resources/assets/javascripts/lib/wysiwyg.js b/resources/assets/javascripts/lib/wysiwyg.js index c54581d..95a4f1a 100644 --- a/resources/assets/javascripts/lib/wysiwyg.js +++ b/resources/assets/javascripts/lib/wysiwyg.js @@ -184,8 +184,7 @@ function replaceTextarea(textarea) { ckeditor.ui.focusTracker.on('change:isFocused', (evt, name, isFocused) => { if (!isFocused) { - ckeditor.setData(wysiwyg.markAsHtml(ckeditor.getData())); - ckeditor.updateSourceElement(); + ckeditor.updateSourceElement(wysiwyg.markAsHtml(ckeditor.getData())); } }); @@ -197,11 +196,6 @@ function replaceTextarea(textarea) { // Tell MathJax v2.7 to leave the editor alone ckeditor.ui.element.classList.add('tex2jax_ignore'); - // TODO: Kein updateSourceElement im SourceEditing-Modus - // $(ckeditor.container.$).on('blur', '.CodeMirror', function (event) { - // ckeditor.updateElement(); // also update in source mode - // }); - return ckeditor; } |
