summaryrefslogtreecommitdiff
path: root/addons/website_profile
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website_profile')
-rw-r--r--addons/website_profile/static/src/js/website_profile.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/website_profile/static/src/js/website_profile.js b/addons/website_profile/static/src/js/website_profile.js
index 8030d06f0fe..105bdb03033 100644
--- a/addons/website_profile/static/src/js/website_profile.js
+++ b/addons/website_profile/static/src/js/website_profile.js
@@ -60,13 +60,26 @@ publicWidget.registry.websiteProfileEditor = publicWidget.Widget.extend({
return def;
}
+ // 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']],
+ ['para', ['ul', 'ol', 'paragraph']],
+ ['table', ['table']],
+ ['insert', ['link', 'picture']],
+ ['history', ['undo', 'redo']],
+ ];
+
var $textarea = this.$('textarea.o_wysiwyg_loader');
var loadProm = wysiwygLoader.load(this, $textarea[0], {
+ toolbar: toolbar,
recordInfo: {
context: this._getContext(),
res_model: 'res.users',
res_id: parseInt(this.$('input[name=user_id]').val()),
},
+ disableResizeImage: true,
}).then(wysiwyg => {
this._wysiwyg = wysiwyg;
});