|
|
|
@ -384,7 +384,7 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
|
|
|
|
|
private void fireRichEditor() { |
|
|
|
|
AttrTooltipRichText richText = this.richTextTooltipContent.getRichTextAttr(); |
|
|
|
|
|
|
|
|
|
refreshTableFieldParams(richText.getParams()); |
|
|
|
|
ModernUIPane<VanChartRichEditorModel> richEditorPane = VanChartRichEditorPane.createRichEditorPane(richText); |
|
|
|
|
VanChartRichTextPane richTextPane = this.createRichTextPane(richEditorPane); |
|
|
|
|
|
|
|
|
@ -456,15 +456,19 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
params.put(fieldNames[i], fieldFormats[i].getJs()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
refreshTableFieldParams(params); |
|
|
|
|
|
|
|
|
|
richText.setParams(params); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void refreshTableFieldParams(Map<String, String> params) { |
|
|
|
|
List<String> tableFieldNames = VanChartRichEditorPane.getFieldNames(); |
|
|
|
|
|
|
|
|
|
if (tableFieldNames != null) { |
|
|
|
|
if (tableFieldNames != null && params != null) { |
|
|
|
|
for (String fieldName : tableFieldNames) { |
|
|
|
|
params.put(fieldName, "${" + fieldName + "_" + fieldName.hashCode() + "}"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
richText.setParams(params); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel createHtmlPane() { |
|
|
|
|