Browse Source

remove script and style in text-editor's setup_input

version-14
Anand Doshi 10 years ago
parent
commit
3c772302b0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      frappe/public/js/frappe/form/control.js

+ 1
- 0
frappe/public/js/frappe/form/control.js View File

@@ -1273,6 +1273,7 @@ frappe.ui.form.ControlTextEditor = frappe.ui.form.ControlCode.extend({
} }
}, },
_set_input: function(value) { _set_input: function(value) {
value = frappe.utils.remove_script_and_style(value);
this.editor.set_input(value); this.editor.set_input(value);
this.md_editor.val(value); this.md_editor.val(value);
this.last_value = value; this.last_value = value;


Loading…
Cancel
Save