summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/transcoder.js
AgeCommit message (Collapse)Author
2016-03-16[MERGE] forward port of branch saas-7 up to revision ↵qdp-odoo
71d16a369e01515aac988c62371d70549d3b5294
2016-03-03[FIX] web_editor: image sizeNicolas Martinelli
Make sure to create an image of a size larger than zero. A size of zero will generate a traceback.
2016-02-10[MERGE] forward port of branch saas-7 up to cab5c48Christophe Simonis
2016-02-04[FIX] web_editor: minor tweaks IE11Nicolas Lempereur
In IE11 the values can be not string (for example a number and so not have .indexOf method), but then there will no be !important bits and we can just ignore this feature (which check if an overriding rule has an !important flag). There was another edge case when getting a "" set style, we get undefined. opw-667917
2016-02-02[MERGE] forward port of branch saas-8 up to 2611a81Christophe Simonis
2016-01-28[FIX] web_editor: remove style attribute if emptyChristophe Matthieu
2016-01-27[MERGE] forward port of branch saas-8 up to 7e44ddcChristophe Simonis
2016-01-20[FIX] web_editor: firefox can have undefined value for style and broke ↵Christophe Matthieu
inliner feature
2016-01-18[FIX] web_editor: inliner don't apply color when background-colorChristophe Matthieu
2016-01-18[FIX] web_editor: inliner take in care the '!important' attributesChristophe Matthieu
2016-01-18[FIX] web_editor: don't limit the css inliner to the class but for all tagChristophe Matthieu
(can reduce the performances)
2016-01-06[IMP] web_editor: use unicode number for FontAwesome controllerNicolas Lempereur
In some non-usual circumstances, using unicode in controllers can lead to issue. For example on a terminal using C encoding (instead of the mighty UTF-8) werkzeug might use sys.getfilesystemencoding to encode the request URL which will fail with UTF-8 inside. This commit change the URL character of the font awesome controller to UTF-8, but keep the old way since every sent mail might still use it. There is the overlap of character 0 to 9 which are overidden in this commit by unicode code 0 to 9, but these were not used in font-awesome anyway (or these are not even visible ASCII characters). closes #9572
2015-09-28[IMP] web_editor: Convert font-awsome into picture before convert class into ↵Christophe Matthieu
style to remove unnecessary style attributes
2015-09-28[FIX] web_editor: send mail to outlook and keep image sizeChristophe Matthieu
Office Outlook doesn't take into account the [style] attribute, and it doesn't manage width/height in percent value. This commit set width/heigth attribute in pixels and also always set the width/height in style attribute (keeping them in the original unit and setting them to auto if not present).
2015-09-23[MERGE] forward port of branch saas-6 up to a669433Christophe Simonis
2015-09-08[FIX] website_mail: special case for css splittingNicolas Lempereur
The css of a mail is inlined as best as possible for the mail sending. Previously, if there was a selector like .ch[onclick="ga(this,event)"] the simple splitting would split in the middle and get one erroneous selector (which then would trigger an error). With his commit, rules containing " or ' are ignored. opw-643548 note: forward port of 6316bce
2015-07-31[FIX]web_editor: Fixed the issue of firefox not able to enumerate on ↵Mohammed Shekha
cssRules, it is due to Cross domain security policy of firefox, used try catch, so that if there is cross domain css then skip it, it should not break the system, atleast it should work for same domain css, cross domain css should skipped
2015-07-31[FIX] web_editor: _.find break if the value is a spaceChristophe Matthieu
Some classes are not checked. Compact values to remove empty string classes.
2015-07-31[FIX] web_editor: on firefox css rules doesn't have key with hyphenChristophe Matthieu
On save (eg: in mass_mailing), the style contains 'undefined' values
2015-07-10[IMP] web_editor: split website into web_editor (to use editor in backend ↵Christophe Matthieu
for html field) and website