Browse Source

REPORT-45880 使用富文本恢复普通文本后文本格式失效

bugfix/10.0
Yyming 3 years ago
parent
commit
9175e0258d
  1. 10
      designer-realize/src/main/java/com/fr/grid/selection/CellSelection.java

10
designer-realize/src/main/java/com/fr/grid/selection/CellSelection.java

@ -592,10 +592,12 @@ public class CellSelection extends Selection {
//设置显示内容为default
private void setDefault(CellElement element) {
CellGUIAttr cellGUIAttr = element.getCellGUIAttr();
cellGUIAttr.setShowAsDefault(true);
cellGUIAttr.setShowAsHTML(false);
cellGUIAttr.setShowAsDownload(false);
cellGUIAttr.setShowAsImage(false);
if (cellGUIAttr != null) {
cellGUIAttr.setShowAsDefault(true);
cellGUIAttr.setShowAsHTML(false);
cellGUIAttr.setShowAsDownload(false);
cellGUIAttr.setShowAsImage(false);
}
}

Loading…
Cancel
Save