diff options
| author | Olivier Dony <odo@openerp.com> | 2017-06-01 00:15:27 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2017-06-01 00:15:27 +0200 |
| commit | b9e220726730e2e0c25dae9952fa90e783fadc16 (patch) | |
| tree | c083daa90cfa91548a775b53a14c3ededdaa10a6 /addons/web_editor/static/src/js/transcoder.js | |
| parent | bb438a29354048be36fe973cd4eba11cee03ed26 (diff) | |
| parent | 7e44444878760ca44cf1b22bf05d77e26c477cab (diff) | |
[MERGE] Forward-port 10.0 up to 7e44444878760ca44cf1b22bf05d77e26c477cab
Diffstat (limited to 'addons/web_editor/static/src/js/transcoder.js')
| -rw-r--r-- | addons/web_editor/static/src/js/transcoder.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/transcoder.js b/addons/web_editor/static/src/js/transcoder.js index 05068972532..6b42e028b3a 100644 --- a/addons/web_editor/static/src/js/transcoder.js +++ b/addons/web_editor/static/src/js/transcoder.js @@ -121,6 +121,16 @@ var getMatchedCSSRules = function (a) { } }); + // text-decoration rule is decomposed in -line, -color and -style. This is + // however not supported by many browser/mail clients and the editor does + // not allow to change -color and -style rule anyway + if (style['text-decoration-line']) { + style['text-decoration'] = style['text-decoration-line']; + delete style['text-decoration-line']; + delete style['text-decoration-color']; + delete style['text-decoration-style']; + } + return style; }; |
