File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed
src/bundle/Resources/public Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,7 @@ const VIEWPORT_TOP_OFFSET_DISTRACTION_FREE_MODE = 0;
249249 CKEditor . create ( container , config ) . then ( ( editor ) => {
250250 this . editor = editor ;
251251
252+ const editableUIView = editor . ui . view . editable ;
252253 const editableElement = this . editor . editing . view . getDomRoot ( ) ;
253254 const editorToolbarPanelInstance = this . editor . ui . view . panel ;
254255 const initialData = this . getData ( ) ;
@@ -324,6 +325,14 @@ const VIEWPORT_TOP_OFFSET_DISTRACTION_FREE_MODE = 0;
324325 }
325326 } ) ;
326327
328+ editableUIView . on ( 'change:isFocused' , ( event ) => {
329+ const containerDataSource =
330+ container . closest ( '.ibexa-field-edit--ezrichtext .ibexa-data-source' ) ??
331+ container . closest ( '.ibexa-data-source--richtext' ) ;
332+
333+ containerDataSource . classList . toggle ( 'ibexa-data-source--focused' , event . source . isFocused ) ;
334+ } ) ;
335+
327336 editorToolbarPanelInstance . on ( 'change:isVisible' , ( { source : eventBalloonPanelViewInstance } ) => {
328337 const fieldEditNode = editableElement . closest ( '.ibexa-field-edit' ) ;
329338
Original file line number Diff line number Diff line change 22.ibexa-data-source--richtext {
33 border : calculateRem (1px ) solid $ibexa-color-dark-200 ;
44 border-radius : $ibexa-border-radius ;
5+ transition : all $ibexa-admin-transition-duration $ibexa-admin-transition ;
56
67 .ck.ck-content {
78 min-height : calculateRem (100px );
265266 }
266267}
267268
269+ .ibexa-data-source--richtext.ibexa-data-source ,
270+ .ibexa-field-edit--ezrichtext .ibexa-data-source {
271+ & :hover {
272+ border-color : var (--ibexa-input-hover-border-color , #{$ibexa-color-primary } );
273+ }
274+
275+ & --focused {
276+ border-color : var (--ibexa-input-focus-border-color , #{$ibexa-color-primary } );
277+ box-shadow : 0 0 0 calculateRem (4px ) var (--ibexa-input-focus-shadow-color , #{rgba ($ibexa-color-primary , 0.25 )} );
278+
279+ & .is-invalid {
280+ box-shadow : none ;
281+ border-color : var (--ibexa-input-invalid-border-color , #{$ibexa-color-danger } );
282+ }
283+
284+ .ck.ck-editor__editable.ck-focused :not (.ck-editor__nested-editable ) {
285+ border : none ;
286+ box-shadow : none ;
287+ }
288+ }
289+ }
290+
268291.ibexa-field-edit--ezrichtext.ibexa-field-edit--nontranslatable .ibexa-data-source {
269292 .ibexa-data-source__richtext {
270293 color : $ibexa-color-dark-300 ;
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ $ibexa-border-radius-small: calculateRem(5px);
44$ibexa-text-font-size : calculateRem (16px );
55$ibexa-text-font-size-small : calculateRem (12px );
66
7+ $ibexa-admin-transition : cubic-bezier (0.25 , 0.8 , 0.25 , 1 );
8+ $ibexa-admin-transition-duration : 0.4s ;
9+
710$ibexa-font-family :
811 ' Noto Sans' ,
912 -apple-system ,
You can’t perform that action at this time.
0 commit comments