Skip to content
Snippets Groups Projects
Commit 16774189 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

add marker to textarea on blur, not ckeditor, fixes #2510

Closes #2510

Merge request studip/studip!1700
parent 99d7da31
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment