[IMP] support for Html field markdown

pull/1979/head
KKamaa 2021-07-09 21:05:43 +03:00 committed by hkapatel
parent 28e0b45f36
commit 5cdb172f17
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,11 @@ odoo.define("web_widget_text_markdown.FieldTextMarkDown", function(require) {
],
_getValue: function() {
var $widget = this.attrs.widget;
var $type = this.field.type;
if ($type === "html" && $widget && $widget === "bootstrap_markdown") {
return this._getHtmlValue(this.$input.val());
}
return this.$markdown.getContent();
},