From: Thibault Delavallée Date: Fri, 20 Jul 2012 11:50:46 +0000 (+0200) Subject: [IMP] cleditor: removed source link. Updated get_value to be more consistent. X-Git-Tag: 7.0-server~2856^2~1 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=284e7939360c9d6bde0e1f0394cc55648c0c11e3;p=odoo%2Fodoo.git [IMP] cleditor: removed source link. Updated get_value to be more consistent. bzr revid: tde@openerp.com-20120720115046-fp0do72zy3cs2p2w --- diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 29ba906..b65d95e 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -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(); }, });