Skip to content

Commit 37f7ea2

Browse files
committed
Merged branch '4.5'
2 parents 1dc20fb + cd54c30 commit 37f7ea2

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/bundle/Resources/public/js/CKEditor/custom-tags/block-custom-tag/custom-tag-ui.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ class IbexaCustomTagUI extends Plugin {
8787
this.attributesView.setChildren({
8888
attributes: this.config.attributes,
8989
});
90+
91+
clickOutsideHandler({
92+
emitter: this.attributesView,
93+
activator: () => this.balloon.hasView(this.attributesView),
94+
contextElements: [this.balloon.view.element],
95+
callback: () => this.hideAttributes(),
96+
});
9097
}
9198

9299
createFormView() {
@@ -132,7 +139,7 @@ class IbexaCustomTagUI extends Plugin {
132139

133140
this.balloon.add({
134141
view: this.attributesView,
135-
position: this.getBalloonPositionData(),
142+
position: { target },
136143
});
137144

138145
this.balloon.updatePosition({ target });

src/bundle/Resources/public/js/CKEditor/custom-tags/ui/custom-tag-attributes-view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import View from '@ckeditor/ckeditor5-ui/src/view';
22
import IbexaButtonView from '../../common/button-view/button-view';
33

4-
class IbexaCustomTagFormView extends View {
4+
class IbexaCustomTagAttributesView extends View {
55
constructor(props) {
66
super(props);
77

@@ -89,4 +89,4 @@ class IbexaCustomTagFormView extends View {
8989
}
9090
}
9191

92-
export default IbexaCustomTagFormView;
92+
export default IbexaCustomTagAttributesView;

0 commit comments

Comments
 (0)