ソースを参照

remove script and style in text-editor's setup_input

version-14
Anand Doshi 10年前
コミット
3c772302b0
1個のファイルの変更1行の追加0行の削除
  1. +1
    -0
      frappe/public/js/frappe/form/control.js

+ 1
- 0
frappe/public/js/frappe/form/control.js ファイルの表示

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


読み込み中…
キャンセル
保存