diff --git a/addons/website/static/src/css/snippets.css b/addons/website/static/src/css/snippets.css index 4c219f7dda8..6f7ec863677 100644 --- a/addons/website/static/src/css/snippets.css +++ b/addons/website/static/src/css/snippets.css @@ -1,3 +1,4 @@ +@charset "UTF-8"; /* ---- SNIPPET EDITOR ---- {{{ */ #oe_snippets #o_left_bar, #oe_snippets #o_arrow { position: fixed; @@ -870,3 +871,12 @@ table.table_desc tr td:last-child { .s_features_grid { margin-bottom: 16px; } + +/* other snippet styles */ +.s_comparisons .panel .list-group-item:not(.active) { + color: #666; +} + +.s_references .img-thumbnail { + border: none; +} diff --git a/addons/website/static/src/css/snippets.sass b/addons/website/static/src/css/snippets.sass index 62a3040c19c..7e33c14fd44 100644 --- a/addons/website/static/src/css/snippets.sass +++ b/addons/website/static/src/css/snippets.sass @@ -81,7 +81,7 @@ .oe_snippet display: inline-block vertical-align: top - width: 93px + width: 92px margin-left: 3px margin-right: 3px margin-top: 1px @@ -701,3 +701,15 @@ table.table_desc tr td .s_features_grid margin-bottom: 16px + + +/* other snippet styles */ + +.s_comparisons + .panel + .list-group-item:not(.active) + color: #666 + +.s_references + .img-thumbnail + border: none diff --git a/addons/website/static/src/js/summernote.js b/addons/website/static/src/js/summernote.js index 70678e58014..d57110cd332 100644 --- a/addons/website/static/src/js/summernote.js +++ b/addons/website/static/src/js/summernote.js @@ -920,19 +920,21 @@ define(['summernote/editing/Editor', 'summernote/summernote'], function (Editor) options.keyMap.mac['ESCAPE'] = 'cancel'; $.summernote.pluginEvents.insertTable = function (event, editor, layoutInfo, sDim) { - var $editable = layoutInfo.editable(); - var dimension = sDim.split('x'); - var rng = range.create(); - rng = rng.deleteContents(); + var $editable = layoutInfo.editable(); + $editable.data('NoteHistory').recordUndo($editable, 'enter'); - var isBodyContainer = dom.isBodyContainer; - dom.isBodyContainer = dom.isNotBreakable; - rng.insertNode(editor.table.createTable(dimension[0], dimension[1])); - dom.isBodyContainer = isBodyContainer; + var dimension = sDim.split('x'); + var rng = range.create(); + rng = rng.deleteContents(); - editor.afterCommand($editable); - event.preventDefault(); - return false; + var isBodyContainer = dom.isBodyContainer; + dom.isBodyContainer = dom.isNotBreakable; + rng.insertNode(editor.table.createTable(dimension[0], dimension[1])); + dom.isBodyContainer = isBodyContainer; + + editor.afterCommand($editable); + event.preventDefault(); + return false; }; $.summernote.pluginEvents.tab = function (event, editor, layoutInfo, outdent) { var $editable = layoutInfo.editable(); diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index 2f187ad5bf9..a1cfb7a2e38 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -366,9 +366,9 @@ define(['summernote/summernote'], function () { var def = new $.Deferred(); editor.on("save", this, function (linkInfo) { - linkInfo.range.select(); $editable.data('range', linkInfo.range); def.resolve(linkInfo); + $editable.data('range', range.create()); $('.note-popover .note-link-popover').show(); }); editor.on("cancel", this, function () { @@ -410,7 +410,7 @@ define(['summernote/summernote'], function () { if (node && (nodeName === "SPAN" || nodeName === "I") && className.length) { var classNames = className.split(/\s+/); for (var k=0; k - + diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index 1414335ea99..97a5bc91868 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -350,7 +350,7 @@
-
+
@@ -379,7 +379,7 @@
-
+
@@ -408,7 +408,7 @@
-
+
@@ -519,7 +519,7 @@ More than 500 happy customers.
-
+

Write a quote here from one of your customers. Quotes are a @@ -528,7 +528,7 @@ Author of this quote

-
+

Odoo provides essential platform for our project management. @@ -537,20 +537,23 @@ John Doe, CEO

-
- OpenERP logo +
+ Logo
-
- OpenERP logo +
+ Logo
-
- OpenERP logo +
+ Logo
-
- OpenERP logo +
+ Logo
-
- OpenERP logo +
+ Logo +
+
+ Logo
diff --git a/addons/website_mail/static/src/js/website_email_designer.js b/addons/website_mail/static/src/js/website_email_designer.js index 4bc778c2130..51ec4d5b017 100644 --- a/addons/website_mail/static/src/js/website_email_designer.js +++ b/addons/website_mail/static/src/js/website_email_designer.js @@ -326,7 +326,7 @@ var content; _.find(website.editor.fontIcons, function (font) { return _.find(website.editor.getCssSelectors(font.parser), function (css) { - if ($font.is(css[0].replace(/::?before$/, ''))) { + if ($font.is(css[2])) { content = css[1].match(/content:\s*['"](.)['"]/)[1]; return true; }