summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/summernote.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-10-10 14:59:33 +0200
committerqsm-odoo <qsm@odoo.com>2016-10-10 15:31:36 +0200
commit6c9b2e202ce4269ed194b3e0a4d37c7c0e095203 (patch)
tree4f701b01ab5b2486fbf2fe416ee8a08839200439 /addons/web_editor/static/src/js/summernote.js
parent57ff82f767da53e1ee7efa6552a4a27dddbae5d0 (diff)
[FIX] web_editor: change attachment/image icon in editor bar
The image icon was not clear enough. The editor bar appears in the website builder, the mail composer, the forum composer, ... In each of them, we can both link a picture or a file but a picture makes more sense in some context and in some other ones not. This commit solves the problem by changing the icon to fa-file-image-o which is a mixed of file and image. This also solves the problem of having two buttons with the image icon in the website builder (indeed an image icon is also used for the image look button).
Diffstat (limited to 'addons/web_editor/static/src/js/summernote.js')
-rw-r--r--addons/web_editor/static/src/js/summernote.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/summernote.js b/addons/web_editor/static/src/js/summernote.js
index 365a30b51e6..101c3463e6e 100644
--- a/addons/web_editor/static/src/js/summernote.js
+++ b/addons/web_editor/static/src/js/summernote.js
@@ -2327,6 +2327,9 @@ eventHandler.detach = function (oLayoutInfo, options) {
$('.o_table_handler').remove();
};
+options.icons.image.image = "file-image-o";
+$.summernote.lang['en-US'].image.image = "File / Image";
+
return $.summernote;
});