From 34dfd00afe6fb56fe6a2d312dc693a7041605ea8 Mon Sep 17 00:00:00 2001 From: chiu Date: Sat, 22 Feb 2020 13:20:20 +0800 Subject: [PATCH] fix editor bug for announcement title --- app/assets/javascripts/form.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/form.js b/app/assets/javascripts/form.js index 941193e..6be0876 100644 --- a/app/assets/javascripts/form.js +++ b/app/assets/javascripts/form.js @@ -1,6 +1,8 @@ $(document).ready(function() { var config = {} config.autoGrow_minHeight = 50; + config.allowedContent = false; + config.disallowedContent = 'img'; config.toolbar = [ { name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] }, { name: 'editing', items: [ 'Find', 'Replace', '-', 'SelectAll', '-', 'Scayt' ] },