From 36ae07ed15a7015f984f928e08b4f6a57df5b0f0 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Tue, 31 Mar 2015 12:03:09 +0200 Subject: [PATCH] [FIX] website_forum: don't use span with style for forum Forum sanitize the content before to be inserted in db. So all tags style are removed... Disabling the option styleWithSpan, will let summernote to use , , to allow the end user to change the style from an answer / question. --- addons/website_forum/static/src/js/website_forum.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js index da5c4c333b5..32c0b70e933 100644 --- a/addons/website_forum/static/src/js/website_forum.js +++ b/addons/website_forum/static/src/js/website_forum.js @@ -225,8 +225,9 @@ } $textarea.summernote({ height: 150, - toolbar: toolbar - }); + toolbar: toolbar, + styleWithSpan: false + }); $form.on('click', 'button, .a-submit', function () { $textarea.html($form.find('.note-editable').code()); });