Browse Source

CHART-18255 富文本默认字段最后一个不需要添加换行

feature/big-screen
Qinghui.Liu 4 years ago
parent
commit
3e79b082ee
  1. 7
      designer-chart/src/main/resources/com/fr/design/editor/rich_editor.html

7
designer-chart/src/main/resources/com/fr/design/editor/rich_editor.html

@ -47,8 +47,7 @@
var getInitContent = function (params, initParams, align) { var getInitContent = function (params, initParams, align) {
var editorService = BI.Services.getService("bi.service.design.chart.common.editor"); var editorService = BI.Services.getService("bi.service.design.chart.common.editor");
var paramGroup = params.split("|"); var paramGroup = params.split("|");
var content = "";
content = "";
for (var i = 0, len = paramGroup.length; i < len; i++) { for (var i = 0, len = paramGroup.length; i < len; i++) {
var [key, value] = paramGroup[i].split(":"); var [key, value] = paramGroup[i].split(":");
@ -58,6 +57,10 @@
} }
} }
if (BI.endWith(content, '<br></p>')) {
content = content.slice(0, -8) + '</p>';
}
return content; return content;
} }

Loading…
Cancel
Save