diff --git a/designer-chart/src/main/resources/com/fr/design/editor/rich_editor.html b/designer-chart/src/main/resources/com/fr/design/editor/rich_editor.html index 2b7677f5c..3434e1ae3 100644 --- a/designer-chart/src/main/resources/com/fr/design/editor/rich_editor.html +++ b/designer-chart/src/main/resources/com/fr/design/editor/rich_editor.html @@ -26,6 +26,8 @@ var initParams = Pool.data.getInitParams(); var align = Pool.data.getAlign(); + var insert_param; + var getDimensionIds = function (params) { var result = []; var paramGroup = params.split("|"); @@ -88,7 +90,13 @@ {type: "bi.rich_editor_color_chooser"}, {type: "bi.rich_editor_align_left_button"}, {type: "bi.rich_editor_align_center_button"}, - {type: "bi.rich_editor_align_right_button"} + {type: "bi.rich_editor_align_right_button"}, + { + type: "bi.design.chart.common.editor.insert_param", + ref: function (_ref) { + insert_param = _ref; + } + } ] }, ref: function (_ref) { @@ -119,27 +127,11 @@ }; Pool.addField = function () { - var editorService = BI.Services.getService("bi.service.design.chart.common.editor"); - - var content = Pool.data.getContent(); - var isAuto = Pool.data.isAuto(); - var params = Pool.data.getParams(); var addition = Pool.data.getAddition(); - if (addition) { - // todo 暂时先处理成在content后加一行 - content += '
' + editorService.getEditorParamImage(addition) + '