Browse Source

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

bugfix/10.0
Yyming 4 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 //设置显示内容为default
private void setDefault(CellElement element) { private void setDefault(CellElement element) {
CellGUIAttr cellGUIAttr = element.getCellGUIAttr(); CellGUIAttr cellGUIAttr = element.getCellGUIAttr();
cellGUIAttr.setShowAsDefault(true); if (cellGUIAttr != null) {
cellGUIAttr.setShowAsHTML(false); cellGUIAttr.setShowAsDefault(true);
cellGUIAttr.setShowAsDownload(false); cellGUIAttr.setShowAsHTML(false);
cellGUIAttr.setShowAsImage(false); cellGUIAttr.setShowAsDownload(false);
cellGUIAttr.setShowAsImage(false);
}
} }

Loading…
Cancel
Save