File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
src/bundle/Resources/public/js/CKEditor/custom-tags Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff line change 11import View from '@ckeditor/ckeditor5-ui/src/view' ;
22import 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 ;
You can’t perform that action at this time.
0 commit comments