Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Changed: Removed createSplitButtonDropdown() from dropdown utils.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Jan 23, 2018
1 parent 700e6a4 commit e6a60ca
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/highlightui.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import {
addToolbarToDropdown,
closeDropdownOnBlur,
closeDropdownOnExecute,
createSplitButtonDropdown,
createDropdownView,
createSplitButtonForDropdown,
enableModelIfOneIsEnabled,
focusDropdownContentsOnArrows
} from '@ckeditor/ckeditor5-ui/src/dropdown/utils';
Expand Down Expand Up @@ -190,7 +191,15 @@ export default class HighlightUI extends Plugin {

model.set( 'buttons', buttons );

const dropdownView = createSplitButtonDropdown( model, locale );
const splitButtonView = createSplitButtonForDropdown( model, locale );
const dropdownView = createDropdownView( model, splitButtonView, locale );

// TODO: Extend template to hide arrow from dropdown. Remove me after changes in theme-lark.
dropdownView.extendTemplate( {
attributes: {
class: 'ck-splitbutton-dropdown'
}
} );

addToolbarToDropdown( dropdownView, model );
closeDropdownOnBlur( dropdownView );
Expand Down

0 comments on commit e6a60ca

Please sign in to comment.