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

Commit

Permalink
Merge pull request #274 from ckeditor/i/6110
Browse files Browse the repository at this point in the history
Other: Align code to the changes in ckeditor5-ui API. See ckeditor/ckeditor5#6110.
  • Loading branch information
jodator authored Mar 26, 2020
2 parents d5a52ca + ce5d085 commit 7df8dec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/manual/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ import { createDropdown, addListToDropdown, addToolbarToDropdown } from '@ckedit

import ToolbarView from '@ckeditor/ckeditor5-ui/src/toolbar/toolbarview';
import ToolbarSeparatorView from '@ckeditor/ckeditor5-ui/src/toolbar/toolbarseparatorview';
import InputTextView from '@ckeditor/ckeditor5-ui/src/inputtext/inputtextview';
import LabeledInputView from '@ckeditor/ckeditor5-ui/src/labeledinput/labeledinputview';

import LabeledFieldView from '@ckeditor/ckeditor5-ui/src/labeledfield/labeledfieldview';
import { createLabeledInputText } from '@ckeditor/ckeditor5-ui/src/labeledfield/utils';

import boldIcon from '@ckeditor/ckeditor5-basic-styles/theme/icons/bold.svg';
import italicIcon from '@ckeditor/ckeditor5-basic-styles/theme/icons/italic.svg';
Expand Down Expand Up @@ -636,9 +637,9 @@ function input( {
isReadOnly = false,
value = 'The value of the input'
} = {} ) {
const labeledInput = new LabeledInputView( {}, InputTextView );
const labeledInput = new LabeledFieldView( {}, createLabeledInputText );

labeledInput.set( { isReadOnly, label, value } );
labeledInput.fieldView.set( { isReadOnly, label, value } );

return labeledInput;
}
Expand Down

0 comments on commit 7df8dec

Please sign in to comment.