Browse Source

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

bugfix/10.0
Yyming 4 years ago
parent
commit
bf63fbf211
  1. 5
      designer-realize/src/main/java/com/fr/grid/selection/CellSelection.java

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

@ -573,6 +573,11 @@ public class CellSelection extends Selection {
for (int i = 0; i < removeElementList.size(); i++) { for (int i = 0; i < removeElementList.size(); i++) {
CellElement element = removeElementList.get(i); CellElement element = removeElementList.get(i);
element.setValue(null); element.setValue(null);
CellGUIAttr cellGUIAttr = element.getCellGUIAttr();
cellGUIAttr.setShowAsDefault(true);
cellGUIAttr.setShowAsHTML(false);
cellGUIAttr.setShowAsDownload(false);
cellGUIAttr.setShowAsImage(false);
} }
break; break;

Loading…
Cancel
Save