v1.0.0-alpha.2
Bug fixes
Template#getViews()
generator should not traverse native HTML elements. Closes #337. Closes ckeditor/ckeditor5#657. (894bad0)- Improved binding of the
value
attribute inInputTextView
. Closes #335. (823120b)
Other changes
-
Implemented
View#render()
method which replaces rendering the#element
upon the first access and incorporates the#init()
method functionality. Closes #262. Closes #302. (bf90ad5)In other words – the
View#render()
method needs to be called to render a view and it sets theView#element
itself. It can be called only once and it is done automatically if a view is added to some other view (as its child). If you need to add any additional logic to your component's initialization, then override therender()
method (and remember to callsuper.render()
).Additionally, from now on
View#setTemplate()
andView#extendTemplate()
methods are recommended as a shorthand forview.template = new Template( { ... } )
andTemplate.extend( view.template )
.Please refer to the updated documentation to learn more.
-
Removed legacy
width
andheight
attributes from theBoxedEditorUIView
. Closes #25. (ffa419a) -
The
ComponentFactory
should be case-insensitive. Closes #324. (94417e9) -
Updated translations. (186f365)
BREAKING CHANGES
- The
View#init()
method in UI components has been renamed torender()
. Please refer to the documentation to learn more. - The
View#element
is no longer a getter which renders an element when first referenced. Use theView#render()
method instead. Template#children
property became anArray
(previouslyViewCollection
).View#addChildren()
andView#removeChildren()
methods became#registerChildren()
and#deregisterChildren()
.- The DOM structure of the
StickyPanelView
has changed along with the class names. Please refer to the component documentation to learn more.