summaryrefslogtreecommitdiff
path: root/addons/website_forum
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website_forum')
-rw-r--r--addons/website_forum/static/src/js/website_forum.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js
index 7c084751d52..46b6a389c5d 100644
--- a/addons/website_forum/static/src/js/website_forum.js
+++ b/addons/website_forum/static/src/js/website_forum.js
@@ -119,6 +119,8 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({
var editorKarma = $textarea.data('karma') || 0; // default value for backward compatibility
var $form = $textarea.closest('form');
var hasFullEdit = parseInt($("#karma").val()) >= editorKarma;
+ // Warning: Do not activate any option that adds inline style.
+ // Because the style is deleted after save.
var toolbar = [
['style', ['style']],
['font', ['bold', 'italic', 'underline', 'clear']],
@@ -141,6 +143,7 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({
res_model: 'forum.post',
res_id: +window.location.pathname.split('-').pop(),
},
+ disableResizeImage: true,
};
if (!hasFullEdit) {
options.plugins = {