[IMP] HTML text field: implemented the get_value to retrieve the html value from the ClEditor.

bzr revid: tde@openerp.com-20120706074435-v3882oyuzbrffqnr
This commit is contained in:
Thibault Delavallée 2012-07-06 09:44:35 +02:00
parent 13e1927070
commit bd3a82c250
1 changed files with 7 additions and 0 deletions

View File

@ -2316,6 +2316,13 @@ instance.web.form.FieldTextHtml = instance.web.form.FieldText.extend({
"margin:4px; font:13px monospace; cursor:text"
});
},
get_value: function() {
// retrive cleditor and get its html content
var textarea_node = this.$element.find('textarea.field_text');
var cleditor = textarea_node.cleditor()[0];
var value = cleditor.$area.val();
return value;
},
});
instance.web.form.FieldBoolean = instance.web.form.AbstractField.extend({