Merge lp:~openerp-dev/openerp-web/7.0-sanitize-template-tde into lp:openerp-web/7.0

Proposed by Thibault Delavallée (OpenERP)
Status: Merged
Merged at revision: 3663
Proposed branch: lp:~openerp-dev/openerp-web/7.0-sanitize-template-tde
Merge into: lp:openerp-web/7.0
Diff against target: 25 lines (+2/-2)
2 files modified
addons/web/static/lib/cleditor/jquery.cleditor.js (+1/-1)
addons/web/static/src/js/view_form.js (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openerp-web/7.0-sanitize-template-tde
Reviewer Review Type Date Requested Status
OpenERP R&D Web Team Pending
Review via email: mp+141269@code.launchpad.net

Description of the change

[IMP] html_sanitize upgraded, allowing styling in html.

Web branch: cleditor does not uses custom fonts anymore.

To post a comment you must log in.
3663. By Thibault Delavallée (OpenERP)

[MERGE] Sync with 7.0.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/web/static/lib/cleditor/jquery.cleditor.js'
2--- addons/web/static/lib/cleditor/jquery.cleditor.js 2012-10-29 14:35:27 +0000
3+++ addons/web/static/lib/cleditor/jquery.cleditor.js 2012-12-27 09:04:22 +0000
4@@ -52,7 +52,7 @@
5 docCSSFile: // CSS file used to style the document contained within the editor
6 "",
7 bodyStyle: // style to assign to document body contained within the editor
8- "margin:4px; font:10pt Arial,Verdana; cursor:text"
9+ "margin:4px; color:#4c4c4c; font-size:13px; font-family:\"Lucida Grande\",Helvetica,Verdana,Arial,sans-serif; cursor:text"
10 },
11
12 // Define all usable toolbar buttons - the init string property is
13
14=== modified file 'addons/web/static/src/js/view_form.js'
15--- addons/web/static/src/js/view_form.js 2012-12-21 14:02:36 +0000
16+++ addons/web/static/src/js/view_form.js 2012-12-27 09:04:22 +0000
17@@ -2632,7 +2632,7 @@
18 "| removeformat | bullets numbering | outdent " +
19 "indent | link unlink | source",
20 bodyStyle: // style to assign to document body contained within the editor
21- "margin:4px; font:12px monospace; cursor:text; color:#1F1F1F"
22+ "margin:4px; color:#4c4c4c; font-size:13px; font-family:\"Lucida Grande\",Helvetica,Verdana,Arial,sans-serif; cursor:text"
23 });
24 this.$cleditor = this.$textarea.cleditor()[0];
25 this.$cleditor.change(function() {