From 967d228a44080381d185c252ff29c993b2b88429 Mon Sep 17 00:00:00 2001 From: Deep Patel Date: Mon, 4 Jun 2018 17:04:39 +0530 Subject: [IMP] mass_mailing, mail: added support for media queries in mass mail - Email generated from mass mailing will have its own layout with internal css. - strip_classes is removed from mail_message because mail client are now supporting internal stylesheet. we need it for make mail responsive. mail: manually removed classes from incoming mail body Because we removed strip_classes from mail message body field because we want to allow classes in outgoing mail to make it responsive but classes are not removed from incoming mails so here we manually removed classes from incoming mail. opw-1836556 --- addons/web_editor/static/src/js/editor/transcoder.js | 1 - 1 file changed, 1 deletion(-) (limited to 'addons/web_editor/static/src/js/editor/transcoder.js') diff --git a/addons/web_editor/static/src/js/editor/transcoder.js b/addons/web_editor/static/src/js/editor/transcoder.js index 84fe3cf8c93..45962e0df8c 100644 --- a/addons/web_editor/static/src/js/editor/transcoder.js +++ b/addons/web_editor/static/src/js/editor/transcoder.js @@ -37,7 +37,6 @@ function getMatchedCSSRules(a) { selectorText.indexOf(':active') === -1 && selectorText.indexOf(':link') === -1 && selectorText.indexOf('::') === -1 && - selectorText.indexOf('"') === -1 && selectorText.indexOf("'") === -1) { var st = selectorText.split(/\s*,\s*/); for (k = 0 ; k < st.length ; k++) { -- cgit v1.2.3