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

Latest commit

 

History

History
538 lines (322 loc) · 43.1 KB

CHANGELOG.md

File metadata and controls

538 lines (322 loc) · 43.1 KB

Changelog

19.0.0 (2020-04-29)

MAJOR BREAKING CHANGES

  • ViewCollection no longer has the locale property.
  • The ViewCollection#constructor() no longer accepts the locale parameter.
  • LabeledView component was renamed to LabeledFieldView. Also, its instance of a labeled component's view is available through LabeledFieldView#fieldView. It replaced the LabeledView#view.

MINOR BREAKING CHANGES

  • The DropdownView#focusTracker property has been removed as it served no purpose.

Features

Bug fixes

  • Call ResizeObserver.destroy() when destroying block toolbar. (59449d2)

Other changes

18.0.0 (2020-03-19)

MAJOR BREAKING CHANGES

Features

Other changes

17.0.0 (2020-02-19)

Features

  • Created the LabeledView class (see ckeditor/ckeditor5-table#227). (ec39406)

    Also added id properties to the DropdownView and LabelView for compatibility with the LabeledView.

  • Implemented the Toolbar#isCompact property to turn regular toolbars into compact ones (with less spacing) (see ckeditor/ckeditor5#6112). (a6b9c09)

  • Reintroduced the concept of body collections with a focus on better management of multiple editors and support for context plugins (plugins which leave outside an editor instance). Closes ckeditor/ckeditor5#5888. (23d12e9)

Bug fixes

Other changes

16.0.0 (2019-12-04)

Features

Bug fixes

Other changes

15.0.0 (2019-10-23)

MAJOR BREAKING CHANGES

  • The internal structure of the toolbar component has changed. Toolbar items are no longer direct descendants of the toolbar in the DOM, which may affect some integrations (mainly CSS selectors if adjustments were made to the styles).

Features

Other changes

14.0.0 (2019-08-26)

Features

Bug fixes

Other changes

BREAKING CHANGES

  • The ToolbarView class requires the editor locale to be passed into the constructor.

13.0.2 (2019-07-10)

Other changes

13.0.1 (2019-07-04)

Other changes

13.0.0 (2019-06-05)

Features

Other changes

  • Renamed a misspelled InputTextViewariaDesribedById property to InputTextView#ariaDescribedById. Closes #483. (2288bf3)
  • The _rwd.css mixin was moved to this package from @ckeditor/ckeditor5-theme-lark. See ckeditor/ckeditor5#1662. (96e3a3c)
  • The ContextualBalloon#add() method should accept the withArrow option. Closes #487. (0e7f670)
  • Updated translations. (4699d8b) (d4c5714)

BREAKING CHANGES

  • The (misspelled) InputTextView#ariaDesribedById property is no longer available. Use ariaDescribedById instead.

12.1.0 (2019-04-10)

Features

Bug fixes

Other changes

12.0.0 (2019-02-28)

Bug fixes

Other changes

BREAKING CHANGES

  • Upgraded minimal versions of Node to 8.0.0 and npm to 5.7.1. See: ckeditor/ckeditor5#1507. (612ea3c)
  • The BallonPanelView#className property was renamed to #class.
  • The ToolbarView#className property was renamed to #class.
  • The EditableUIView#externalElement property (which held the element on which the editor was created if it was explicitly passed) was removed.
  • The EditorUIView#editableElement property was made private. Use editor.ui.getEditableElement() method instead.

11.2.0 (2018-12-05)

Features

  • Added the .ck-read-only CSS class to the EditableUIView when #isReadOnly is true. (4119822)

  • Added the optional DropdownView#class property to set a custom CSS class on the main element in DOM. Closes #447. (9cdcd4a)

    Thanks to @lucasreppewelander!

  • Implemented LabeledInputView#infoText to display useful hints next to the input (see ckeditor/ckeditor5-media-embed#35). (6ac03ea)

  • Implemented configurable, smart DropdownView panel positioning. Closes #123. (8094f19)

Other changes

11.1.0 (2018-10-08)

Features

Bug fixes

  • Made the Edit block string translatable. Closes #445. (1fa84e9)

Other changes

11.0.0 (2018-07-18)

Features

  • Implemented the SwitchButtonView. Closes #402. Closes #403. (105fbea)

    Also:

    • Simplified the ListItemView class, which is now just a container for ButtonView (and others),
    • Moved ListItemView#style and #class to the ButtonView (as #class and #labelStyle),
    • Enhanced the addListToDropdown utility with a better configuration (ListDropdownItemDefinition) and the support for buttons, switch buttons, and separators,
    • .ck-button and .ck-list became flex containers; the first one to allow complex inner structures (like the toggle) and the later to take control of complex list items (like .ck-switchbutton).

Bug fixes

  • The BalloonToolbar should hide when the editable is blurred. Closes #418. (f6a02d4)
  • The BlockToolbar should add elements to the FocusTracker only after uiReady is fired to avoid errors. Closes #424. (ae9fa09)
  • The BlockToolbar should hide when the editor is blurred. Closes #408. (e3bbccf)

Other changes

  • Allowed list item's buttons to have an outer, visible box-shadow. Ensured the balloon panel's arrow does not cover panel's children. Closes #394. (8a64ee2)
  • Updated translations. (949585d)

BREAKING CHANGES

  • Most of the ListItemView functionality is now handled by the ButtonView,
  • The API of the addListToDropdown has changed; see ListDropdownItemDefinition to learn more,
  • The .ck-button and .ck-list classes are using flex which may have an impact on rendering.

10.1.0 (2018-06-21)

Features

Bug fixes

Other changes

10.0.0 (2018-04-25)

Other changes

BREAKING CHANGES

  • The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See ckeditor/ckeditor5#991 for more information.

1.0.0-beta.4 (2018-04-19)

Internal changes only (updated dependencies, documentation, etc.).

1.0.0-beta.2 (2018-04-10)

Other changes

BREAKING CHANGES

  • View#registerChildren() and View#deregisterChildren() have been renamed to View#registerChild() and View#deregisterChild().

1.0.0-beta.1 (2018-03-15)

Features

  • Implemented the IconView#fillColor observable which fills child .ck-icon__fill paths with the color (see ckeditor/ckeditor5-theme-lark#148). (728a691)

  • Initial implementation of the ButtonDropdownView. Closes #333. (6e9c6e4)

    Also:

    • Allowed vertical layout of the ToolbarView thanks to the #isVertical attribute.
    • Implemented ToolbarView#className attribute.
    • Implemented DropdownView#isEnabled attribute along with the CSS class binding.
  • Updated UI components to bring the support for the refreshed Lark theme (see ckeditor/ckeditor5#645). (623d536)

Bug fixes

Other changes

  • Added a CSS class to the SplitButtonView when the arrow is on (see ckeditor/ckeditor5-theme-lark#134). (d490d61)
  • Added the .ck-content CSS class to the EditableUIView in order to simplify styling the editor content. Closes #176. (f38ae70)
  • Align feature class naming to a new scheme. (1c500f6)
  • Aligned code to changes (config.lang to config.languages). Part of the Translation Service v2 (ckeditor/ckeditor5#624). (876f681)
  • ComponentFactory.names() will return original component names (instead of normalized names). Closes #376. (b6b39d7)
  • CSS classes should be prefixed with ck- instead of cke-. Closes #112. (7973f83)
  • Introduced SplitButtonView and new dropdown creation helpers (createDropdown(), addListToDropdown() and addToolbarToDropdown()) Closes #344. Closes #356. (0f26ca8)
  • Migrated the package styles from SASS to PostCSS to bring theme support and avoid duplicates in some editor builds. Closes #144. Closes ckeditor/ckeditor5#420. (f152dfc)
  • Moved ck-button-icon mixin from ckeditor5-theme-lark. (8757d27)
  • Removed the .ck-editor-toolbar and .ck-editor-toolbar-container classes (see ckeditor/ckeditor5-theme-lark#135). (352d056)
  • Rename ContextualToolbar to BalloonToolbar. Closes ckeditor/ckeditor5#550. (28f59df)
  • The closeDropdownOnBlur() helper should use clickOutsideHandler(). Decorated the View#render() method. Closes #311. (269e97b)
  • Updated translations. (f657be2)

BREAKING CHANGES

  • Renamed contextual/contextualtoolbar~ContextualToolbar to balloon/balloontoolbar~BalloonToolbar.
  • Renamed contextualToolbar configuration option to balloonToolbar.
  • Removed DropdownModel interface – you can use dropdown properties directly now. See #356.
  • Removed createButtonDropdown() and ButtonDropdownView. See #356.
  • Removed createListDropdown() and ListDropdownView. See #356.
  • The DOM structure of the dropdown component has changed. Please refer to the documentation to find out more.
  • Basic properties of the balloon panel component have changed (i.e. the location of the arrow, the default positions), which may have an impact on existing integrations.
  • The styles are no longer developed in SASS which means the .scss files became unavailable. Please refer to the Theme Customization guide to learn more about migration to PostCSS.

1.0.0-alpha.2 (2017-11-14)

Bug fixes

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 the View#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 the render() method (and remember to call super.render()).

    Additionally, from now on View#setTemplate() and View#extendTemplate() methods are recommended as a shorthand for view.template = new Template( { ... } ) and Template.extend( view.template ).

    Please refer to the updated documentation to learn more.

  • Removed legacy width and height attributes from the BoxedEditorUIView. 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 to render(). Please refer to the documentation to learn more.
  • The View#element is no longer a getter which renders an element when first referenced. Use the View#render() method instead.
  • Template#children property became an Array (previously ViewCollection).
  • View#addChildren() and View#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.

1.0.0-alpha.1 (2017-10-03)

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 of config.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 of View#addChildren(). Closes #303. (0f1ea5a)
  • Replaced StickyToolbarView with a generic StickyPanelView. 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 the KeystrokeHandler. Closes #150. (b322744)

BREAKING CHANGES

  • Toolbar#fillFromConfig() cannot be now called with an undefined. Make sure to use normalizeToolbarConfig() to get a reliable object.
  • The escPressHandler is no longer available. Please refer to the KeystrokeHandler helper to learn more.
  • The StickyToolbarView and corresponding CSS .ck-sticky-panel classes are no longer available. StickyPanelView + ToolbarView combo should be used instead.

0.10.0 (2017-09-03)

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 dropdown 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 use mousedown instead of mouseup event. Closes #281. (6b980b6)
  • The Template class should not throw an error when a child view in the definition has an id attribute set without a value. Closes #289. (d7072ba)
  • The TooltipView should hide when the TooltipView#text is empty. The ButtonView's ability to get a tooltip should not be restricted after View 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 and LabeledInputView#isReadOnly states. Closes #266. Closes #268. (111a728)

  • Added optional notification title. Closes #241. (abbb68f)

  • Allowed BalloonPanelView position limiter defined as a function. Made ContextualBalloon position limiter configurable via #positionLimiter property. Closes #260. (322563e)

  • Implemented placeholder in InputTextView. Closes #220. (5d91d18)

  • Introduced CommandFactory#names(). Closes #287. (4038da2)

Other changes

  • Add support for multiple context elements in the clickOutsideHandler helper. Closes #261. (9da5bf7)
  • Added the beforeShow event to the ContextualToolbar plugin. Closes #222. (835d0ac)
  • Implemented public show() and hide() methods in the ContextualToolbar 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. The ContextualToolbar#beforeShow event has been replaced by ContextualToolbar#show. Closes #269. Closes #232. (d83d07d)

BREAKING CHANGES

  • StickyToolbarView#limiterOffset has been renamed to StickyToolbarView#limiterBottomOffset.
  • ContextualToolbar#beforeShow is no longer available. Please refer to ContextualToolbar#show instead.
  • The clickOutsideHandler helper's contextElement config option is now an Array named contextElements.
  • View#init(), View#destroy() (also ViewCollection#init(), ViewCollection#destroy() and ViewCollection#add()) no longer return Promise. It may require updates in UI components which inherit from View and rely on the value returned by these methods.
  • Various UI components switched to synchronous init() and destroy() (no longer returning Promise), 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.

0.9.0 (2017-05-07)

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. Added className attribute to the BalloonPanelView 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)

  • Introduced notification plugin. Closes #189. (f2dd63f)

Other changes

  • Improved ContextualBalloon so it supports asynchronous Views. Closes #200. (09067aa)

  • Merged FloatingPanelView into BalloonPanelView. Closes #191. (4b90faa)

    BREAKING CHANGE: FloatingPanelView is no longer available. BREAKING CHANGE: BalloonPanelView#keepAttachedTo() has been replaced by pin(). BREAKING CHANGE: Default position names in BalloonPanelView.defaultPositions have changed. Now prefixed with arrow_.

  • 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 by pin().
  • Default position names in BalloonPanelView.defaultPositions have changed. Now prefixed with arrow_.

0.8.0 (2017-04-05)

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 and enableToolbarKeyboardFocus() 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 to Collection class in ckeditor5-utils. Closes #168. (5b55987)
  • Updated translations. (3b27e51)

BREAKING CHANGES

  • ViewCollection#bindTo.as is renamed to Collection#bindTo.using when mapping function is a parameter. SeeCollection#bindTo docs.
  • The ui/balloonpanel/balloonpanelview module was renamed to ui/panel/balloon/balloonpanelview. See #152.

0.7.1 (2017-03-06)

Bug fixes

  • Removed title from the editable element. Fixes #121. (71fb3eb)

Features

  • Added support for toolbar item separators. Closes #154. (f3cb75d)

Other changes