You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+// Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
+// For licensing, see LICENSE.md or http://ckeditor.com/license
+
+@import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_colors.scss';
+@import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_shadow.scss';
+@import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_states.scss';
+
+.ck-widget.image {
+ figcaption {
+ background-color: ck-color( 'foreground' );
+ padding: 10px;
+
+ // The `:focus` styles is applied before `.focused` class inside editables.
+ // These styles show different border for a blink of an eye.
+ &:focus {
+ outline: none;
+ box-shadow: none;
+ }
+
+ &.focused {
+ @include ck-focus-ring( 'outline' );
+ @include ck-box-shadow( $ck-inner-shadow );
+ background-color: ck-color( 'background' );;
+ }
+
+ }
+}
This is incorrect – part of these styles should be image styles and part of them should be generic widget styles. In order to style widget's nested editables in a generic way, we need to be able to identify nested editables in the DOM, hence, they need to be marked with classes.
The text was updated successfully, but these errors were encountered:
Feature: Introduced `toWidgetEditable()`. Closes #57.
The styling and behavior of image's caption will now be reusable in other widgets.
BREAKING CHANGE: Widget utility function `widgetize()` was renamed to `toWidget()`.
mlewand
transferred this issue from ckeditor/ckeditor5-image
Oct 9, 2019
In ckeditor/ckeditor5-image#48 we introduced first nested editables, but they are styled as:
This is incorrect – part of these styles should be image styles and part of them should be generic widget styles. In order to style widget's nested editables in a generic way, we need to be able to identify nested editables in the DOM, hence, they need to be marked with classes.
The text was updated successfully, but these errors were encountered: