Browse Source

CHART-18112 富文本组件新建和刷新后选中最后一个元素

feature/big-screen
Qinghui.Liu 4 years ago
parent
commit
1b271beae8
  1. 16
      designer-chart/src/main/resources/com/fr/design/editor/rich_editor.html

16
designer-chart/src/main/resources/com/fr/design/editor/rich_editor.html

@ -64,6 +64,18 @@
return content;
}
var selectLast = function (instance) {
if (instance == null) {
return;
}
var target = instance.selElm()
if (target) {
instance.selected({target});
}
};
var dimensionIds = getDimensionIds(params);
if (initParams) {
@ -110,6 +122,8 @@
}
});
selectLast(rich_editor.editor.instance);
Pool.refresh = function () {
var content = Pool.data.getContent();
var isAuto = Pool.data.isAuto();
@ -130,6 +144,8 @@
});
rich_editor.setFocus();
selectLast(rich_editor.editor.instance);
};
Pool.addField = function () {

Loading…
Cancel
Save