Skip to content
Snippets Groups Projects
Commit 872ca0df authored by Elmar Ludwig's avatar Elmar Ludwig Committed by David Siegfried
Browse files

add HTML marker on ajax save, re #1708

Merge request studip/studip!1115
parent 7fc637bb
No related branches found
No related tags found
No related merge requests found
...@@ -193,15 +193,17 @@ export default { ...@@ -193,15 +193,17 @@ export default {
values: { values: {
handler(newValue, oldValue) { handler(newValue, oldValue) {
this.$emit('input', newValue[this.defaultLanguage]); this.$emit('input', newValue[this.defaultLanguage]);
let exportValue = {};
let input_all = {}; let input_all = {};
let name = null;
for (let i in this.languages) { for (let i in this.languages) {
exportValue[this.languages[i].id] = newValue[this.languages[i].id]; let name = this.nameOfInput(this.languages[i].id);
name = this.nameOfInput(this.languages[i].id); let value = newValue[this.languages[i].id];
input_all[name] = newValue[this.languages[i].id];
if (this.type === 'wysiwyg' && STUDIP.editor_enabled && value !== null) {
value = STUDIP.wysiwyg.markAsHtml(value);
}
input_all[name] = value;
} }
this.$emit('input_all_languages', exportValue);
this.$emit('allinputs', input_all); this.$emit('allinputs', input_all);
}, },
deep: true deep: true
......
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