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
=== modified file 'addons/web/static/lib/cleditor/jquery.cleditor.js'
--- addons/web/static/lib/cleditor/jquery.cleditor.js 2012-10-29 14:35:27 +0000
+++ addons/web/static/lib/cleditor/jquery.cleditor.js 2012-12-27 09:04:22 +0000
@@ -52,7 +52,7 @@
52 docCSSFile: // CSS file used to style the document contained within the editor52 docCSSFile: // CSS file used to style the document contained within the editor
53 "", 53 "",
54 bodyStyle: // style to assign to document body contained within the editor54 bodyStyle: // style to assign to document body contained within the editor
55 "margin:4px; font:10pt Arial,Verdana; cursor:text"55 "margin:4px; color:#4c4c4c; font-size:13px; font-family:\"Lucida Grande\",Helvetica,Verdana,Arial,sans-serif; cursor:text"
56 },56 },
5757
58 // Define all usable toolbar buttons - the init string property is 58 // Define all usable toolbar buttons - the init string property is
5959
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js 2012-12-21 14:02:36 +0000
+++ addons/web/static/src/js/view_form.js 2012-12-27 09:04:22 +0000
@@ -2632,7 +2632,7 @@
2632 "| removeformat | bullets numbering | outdent " +2632 "| removeformat | bullets numbering | outdent " +
2633 "indent | link unlink | source",2633 "indent | link unlink | source",
2634 bodyStyle: // style to assign to document body contained within the editor2634 bodyStyle: // style to assign to document body contained within the editor
2635 "margin:4px; font:12px monospace; cursor:text; color:#1F1F1F"2635 "margin:4px; color:#4c4c4c; font-size:13px; font-family:\"Lucida Grande\",Helvetica,Verdana,Arial,sans-serif; cursor:text"
2636 });2636 });
2637 this.$cleditor = this.$textarea.cleditor()[0];2637 this.$cleditor = this.$textarea.cleditor()[0];
2638 this.$cleditor.change(function() {2638 this.$cleditor.change(function() {