|
@@ -10,11 +10,17 @@
|
|
|
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
|
|
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
|
|
|
import Model from '@ckeditor/ckeditor5-ui/src/model';
|
|
import Model from '@ckeditor/ckeditor5-ui/src/model';
|
|
|
import Collection from '@ckeditor/ckeditor5-utils/src/collection';
|
|
import Collection from '@ckeditor/ckeditor5-utils/src/collection';
|
|
|
|
|
+import {
|
|
|
|
|
+ addListViewToDropdown,
|
|
|
|
|
+ closeDropdownOnBlur,
|
|
|
|
|
+ closeDropdownOnExecute,
|
|
|
|
|
+ createSingleButtonDropdown,
|
|
|
|
|
+ focusDropdownContentsOnArrows
|
|
|
|
|
+} from '@ckeditor/ckeditor5-ui/src/dropdown/utils';
|
|
|
|
|
|
|
|
import { normalizeOptions } from '../fontsize/utils';
|
|
import { normalizeOptions } from '../fontsize/utils';
|
|
|
|
|
|
|
|
import fontSizeIcon from '../../theme/icons/font-size.svg';
|
|
import fontSizeIcon from '../../theme/icons/font-size.svg';
|
|
|
-import { addDefaultBehavior, addListViewToDropdown, createSingleButtonDropdown } from '../../../ckeditor5-ui/src/dropdown/utils';
|
|
|
|
|
|
|
|
|
|
import '../../theme/fontsize.css';
|
|
import '../../theme/fontsize.css';
|
|
|
|
|
|
|
@@ -71,7 +77,9 @@ export default class FontSizeUI extends Plugin {
|
|
|
const dropdownView = createSingleButtonDropdown( dropdownModel, locale );
|
|
const dropdownView = createSingleButtonDropdown( dropdownModel, locale );
|
|
|
|
|
|
|
|
addListViewToDropdown( dropdownView, dropdownModel, locale );
|
|
addListViewToDropdown( dropdownView, dropdownModel, locale );
|
|
|
- addDefaultBehavior( dropdownView );
|
|
|
|
|
|
|
+ closeDropdownOnBlur( dropdownView );
|
|
|
|
|
+ closeDropdownOnExecute( dropdownView );
|
|
|
|
|
+ focusDropdownContentsOnArrows( dropdownView );
|
|
|
|
|
|
|
|
dropdownView.extendTemplate( {
|
|
dropdownView.extendTemplate( {
|
|
|
attributes: {
|
|
attributes: {
|