[IMP] [MONKEY] Re-apply changes introduced at version 3664 that was
authorThibault Delavallée <tde@openerp.com>
Wed, 5 Mar 2014 10:57:51 +0000 (11:57 +0100)
committerThibault Delavallée <tde@openerp.com>
Wed, 5 Mar 2014 10:57:51 +0000 (11:57 +0100)
a forward port of 7.0 commits.
Commit 1 by fme.
[FIX] html widget: fix cleditor width when the field was invisible before becoming editable
Commit 2 by tde.
[IMP] cleditor: stop using custom font-size, font-family.

bzr revid: tde@openerp.com-20140305105751-w1i47ytx73ac5gkr

addons/web/static/lib/cleditor/jquery.cleditor.js

index c9e5def..e11d1b1 100644 (file)
@@ -47,7 +47,7 @@
       docCSSFile:   // CSS file used to style the document contained within the editor\r
                     "", \r
       bodyStyle:    // style to assign to document body contained within the editor\r
-                    "margin:4px; font:10pt Arial,Verdana; cursor:text"\r
+                    "margin:4px; color:#4c4c4c; font-size:13px; font-family:\"Lucida Grande\",Helvetica,Verdana,Arial,sans-serif; cursor:text"\r
     },\r
 \r
     // Define all usable toolbar buttons - the init string property is \r
 \r
       var $toolbar = editor.$toolbar,\r
           $group = $toolbar.children("div:last"),\r
-          wid = $main.width();\r
+          wid = /%/.test("" + options.width) ? options.width : $main.width();\r
 \r
       // Resize the toolbar\r
       var hgt = $group.offset().top + $group.outerHeight() - $toolbar.offset().top + 1;\r