@ckeditor/ckeditor5-style 47.7.1 → 47.7.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/stylecommand.js +2 -1
- package/src/styleui.js +2 -1
package/dist/index.js
CHANGED
|
@@ -632,7 +632,8 @@ class StyleUtils extends Plugin {
|
|
|
632
632
|
});
|
|
633
633
|
// Execute the command when a style is selected in the styles panel.
|
|
634
634
|
// Also focus the editable after executing the command.
|
|
635
|
-
// It overrides a default behaviour where the focus is moved to the dropdown button
|
|
635
|
+
// It overrides a default behaviour where the focus is moved to the dropdown button.
|
|
636
|
+
// See https://github.com/ckeditor/ckeditor5/issues/12125.
|
|
636
637
|
dropdown.on('execute', (evt)=>{
|
|
637
638
|
editor.execute('style', {
|
|
638
639
|
styleName: evt.source.styleDefinition.name
|
|
@@ -811,7 +812,8 @@ class StyleUtils extends Plugin {
|
|
|
811
812
|
}
|
|
812
813
|
/**
|
|
813
814
|
* Returns classes that are defined only in the supplied definition and not in any other active definition. It's used
|
|
814
|
-
* to ensure that classes used by other definitions are preserved when a style is removed.
|
|
815
|
+
* to ensure that classes used by other definitions are preserved when a style is removed.
|
|
816
|
+
* See https://github.com/ckeditor/ckeditor5/issues/11748.
|
|
815
817
|
*
|
|
816
818
|
* @param activeDefinitions All currently active definitions affecting selected element(s).
|
|
817
819
|
* @param definition Definition whose classes will be compared with all other active definition classes.
|