[IMP] cleditor: removed source link. Updated get_value to be more consistent.
authorThibault Delavallée <tde@openerp.com>
Fri, 20 Jul 2012 11:50:46 +0000 (13:50 +0200)
committerThibault Delavallée <tde@openerp.com>
Fri, 20 Jul 2012 11:50:46 +0000 (13:50 +0200)
bzr revid: tde@openerp.com-20120720115046-fp0do72zy3cs2p2w

addons/web/static/src/js/view_form.js

index 29ba906..b65d95e 100644 (file)
@@ -2310,8 +2310,7 @@ instance.web.form.FieldTextHtml = instance.web.form.FieldText.extend({
             controls:   // controls to add to the toolbar
                         "bold italic underline strikethrough | size " +
                         "| removeformat | bullets numbering | outdent " +
-                        "indent | " +
-                        "link unlink | source",  
+                        "indent | link unlink",
             sizes:      // sizes in the font size popup
                         "1,2,3,4,5,6,7",
             bodyStyle:  // style to assign to document body contained within the editor
@@ -2335,7 +2334,8 @@ instance.web.form.FieldTextHtml = instance.web.form.FieldText.extend({
     },
 
     get_value: function() {
-        return this.$cleditor.$area.val();
+        this.$cleditor.updateTextArea();
+        return this.$textarea.val();
     },
 });