Releases: ckeditor/ckeditor5-ui
v1.0.0-alpha.1
Bug fixes
ContextualBalloon
should remember position passed to#updatePosition()
. Closes #305. Closes ckeditor/ckeditor5-image#141. (c787c0d)ContextualToolbar
should not be positioned to a zero–width DOM rect when invoked for a multi-line forward selection. Closes #308. (00b701b)ContextualToolbar
will accept the object format ofconfig.contextualToolbar
. Closes #316. (d71cad8)- Fixed sticky panel's
z-index
so it's correctly rendered above images (or other relatively positioned elements). Closes #315. (00f2add) - The content of the
BalloonPanelView
should be selectable. Closes #294. Closes ckeditor/ckeditor5#498. (e5315df)
Features
- Implemented
View#removeChildren()
, the opposite ofView#addChildren()
. Closes #303. (0f1ea5a) - Replaced
StickyToolbarView
with a genericStickyPanelView
. Closes #297. (b10b43c)
Other changes
ToolbarView#fillFromConfig()
will warn when the factory does not provide a component. Closes #291. Closes ckeditor/ckeditor5#526. (2e63e70)- The
escPressHandler
function should be replaced by theKeystrokeHandler
. Closes #150. (b322744)
BREAKING CHANGES
Toolbar#fillFromConfig()
cannot be now called with anundefined
. Make sure to usenormalizeToolbarConfig()
to get a reliable object.- The
escPressHandler
is no longer available. Please
refer to theKeystrokeHandler
helper to learn more. - The
StickyToolbarView
and corresponding CSS.ck-sticky-panel
classes are no longer available.StickyPanelView
+ToolbarView
combo should be used instead.
v0.10.0
Bug fixes
ContextualToolbar
should have proper editor toolbar styling. Closes #230. (4e2ee36)- BalloonPanelView should prevent native #selectstart event. Closes #243. (cba3fb1)
- Button tooltip should not look blurry on low-DPI screens. Closes #142. Closes #133. (a497aff)
- Clicking and dragging in a drop-down panel should not break the selection. Closes #228. (6066a09)
- Contextual toolbar should re–position correctly on window scroll. Closes #227. (e5ea25f)
DropdownView
should open upon arrow down key press. Closes #249. (c1e6afc)- List items should handle Enter and Space key press when focused. Closes #153. (403b64a)
- The
clickOutsideHandler
helper should usemousedown
instead ofmouseup
event. Closes #281. (6b980b6) - The
Template
class should not throw an error when a child view in the definition has anid
attribute set without a value. Closes #289. (d7072ba) - The
TooltipView
should hide when theTooltipView#text
is empty. TheButtonView's
ability to get a tooltip should not be restricted afterView
initialization. Closes #283. (1588c82) - The dropdown menu should not open using the keyboard when disabled. Closes #238. (fc524b8)
Features
-
StickyToolbarView
now supports a configurable vertical offset from the top of the page. Closes #277. (245f0fa)Also implemented the
normalizeToolbarConfig()
utility. -
Added
TextInputView#isReadOnly
andLabeledInputView#isReadOnly
states. Closes #266. Closes #268. (111a728) -
Allowed
BalloonPanelView
position limiter defined as a function. MadeContextualBalloon
position limiter configurable via#positionLimiter
property. Closes #260. (322563e) -
Implemented placeholder in
InputTextView
. Closes #220. (5d91d18)
Other changes
- Add support for multiple context elements in the
clickOutsideHandler
helper. Closes #261. (9da5bf7) - Added the
beforeShow
event to theContextualToolbar
plugin. Closes #222. (835d0ac) - Implemented public
show()
andhide()
methods in theContextualToolbar
plugin. Closes #263. (eb4caab) - Improvements in the
BalloonPanelView
–based components for the balloon toolbar editor. Closes #236. Closes #234. Closes #224. (737b55f) - Made the UI component initialization and destruction processes synchronous. Closes #225. (07e1502)
- Made the UI destruction a fail–safe, repeatable process. Closes #248. (6f5ec0d)
- The
ContextualToolbar
should not show up when all child items are disabled. TheContextualToolbar#beforeShow
event has been replaced byContextualToolbar#show
. Closes #269. Closes #232. (d83d07d)
BREAKING CHANGES
StickyToolbarView#limiterOffset
has been renamed toStickyToolbarView#limiterBottomOffset
.ContextualToolbar#beforeShow
is no longer available. Please refer toContextualToolbar#show
instead.- The
clickOutsideHandler
helper'scontextElement
config option is now anArray
namedcontextElements
. View#init()
,View#destroy()
(alsoViewCollection#init()
,ViewCollection#destroy()
andViewCollection#add()
) no longer returnPromise
. It may require updates in UI components which inherit fromView
and rely on the value returned by these methods.- Various UI components switched to synchronous
init()
anddestroy()
(no longer returningPromise
), which means that features using these components may need some updates to work properly. - The position names in
BalloonPanelView.defaultPositions
and their results have changed. Please refer to the latest API documentation to learn more.
v0.9.0
Bug fixes
-
BalloonPanelView
should not be focusable. Closes #206. (f9e3bb7)T/206a: BalloonPanelView should not be focusable
-
ContextualBalloon plugin should use BalloonPanelView#pin instead of #attachTo. Closes #192. (28dd457)
-
ContextualBalloon.view#element should be registered in editor's focus tracker. Closes #193. (cfbe329)
-
FocusCycler should ignore invisible views. Closes #209. (b8fbaf1)
T/209: FocusCycler should not consider invisible views.
-
ViewCollection#destroy should wait for all ViewCollection#add promises to resolve to avoid errors. Closes #203. (a7e7c94)
Features
-
Added keepAttachedTo() method to the BalloonPanelView. Closes #170. (101b465)
-
Introduced
ContextualToolbar
plugin. Closes #182. Closes #187. (66a30b1)Introduced several new positions in
BalloonPanelView#defaultPositions
. AddedclassName
attribute to theBalloonPanelView
interface.BREAKING CHANGE: Default positions of the
BalloonPanelView
have been renamed.BREAKING CHANGE: Class names controlling the arrow of the panel have been renamed.
-
Introduced ContextualBalloon plugin for managing contextual balloons. Closes #134. (3ceb6a6)
Other changes
-
Improved ContextualBalloon so it supports asynchronous Views. Closes #200. (09067aa)
-
Merged
FloatingPanelView
intoBalloonPanelView
. Closes #191. (4b90faa)BREAKING CHANGE:
FloatingPanelView
is no longer available.
BREAKING CHANGE:BalloonPanelView#keepAttachedTo()
has been replaced bypin()
.
BREAKING CHANGE: Default position names inBalloonPanelView.defaultPositions
have changed. Now prefixed witharrow_
. -
Updated translations. (3455fe7)
BREAKING CHANGES
- Default positions of the
BalloonPanelView
have been renamed. - Class names controlling the arrow of the panel have been renamed.
FloatingPanelView
is no longer available.BalloonPanelView#keepAttachedTo()
has been replaced bypin()
.- Default position names in
BalloonPanelView.defaultPositions
have changed. Now prefixed witharrow_
.
v0.8.0
Features
- Allowed marking ListItemView active using the #isActive attribute. Closes #166. (a19d6c4)
- Enabled styling via "class" attribute in ListItemView. Closes #162. (672bf82)
- Implemented features necessary for creating inline editors UI –
FloatingPanelView
class,Template.revert()
method andenableToolbarKeyboardFocus()
util. Closes #152. (cb606d7)
Other changes
ComponentFactory
will throw an error when attempting to create a non-existent component. Closes #174. (ef0a7f8)- Imported "ck-hidden" CSS class from ckeditor5-theme-lark. Closes #164. (486bb22)
- Moved
ViewCollection#bindTo
method toCollection
class inckeditor5-utils
. Closes #168. (5b55987) - Updated translations. (3b27e51)
BREAKING CHANGES
ViewCollection#bindTo.as
is renamed toCollection#bindTo.using
when mapping function is a parameter. SeeCollection#bindTo
docs.- The
ui/balloonpanel/balloonpanelview
module was renamed toui/panel/balloon/balloonpanelview
. See #152.