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

Commit

Permalink
Created flex example for sizing editor element.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Oct 26, 2017
1 parent 94417e9 commit d4d84b5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/editorui/boxed/boxededitoruiview.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export default class BoxedEditorUIView extends EditorUIView {
*/
this.main = this.createCollection();

const bind = this.bindTemplate;

this.template = new Template( {
tag: 'div',

Expand All @@ -59,7 +61,11 @@ export default class BoxedEditorUIView extends EditorUIView {
role: 'application',
dir: 'ltr',
lang: locale.lang,
'aria-labelledby': `cke-editor__aria-label_${ ariaLabelUid }`
'aria-labelledby': `cke-editor__aria-label_${ ariaLabelUid }`,
style: {
width: bind.to( 'width', value => `${ value }` ),
height: bind.to( 'height', value => `${ value }` )
}
},

children: [
Expand Down

0 comments on commit d4d84b5

Please sign in to comment.