export const registHtmlFun = (Element) => { Element.registerFunction('html', function (text) { if (text && text.charAt(0) === '<') { BI.createWidget({ type: 'bi.html', element: this.widget, html: text, }); this.originalHtml = text; } else { this.text = BI.htmlDecode(text); } return this; }); };