editor.js/docs/CHANGELOG.md
Peter Savchenko ac93017c70
Release 2.16 (#966)
* 2.16.0

* [Refactor] Separate internal and external settings (#845)

* Enable flipping tools via standalone class (#830)

* Enable flipping tools via standalone class

* use flipper to refactor (#842)

* use flipper to refactor

* save changes

* update

* fix flipper on inline toolbar

* ready for testing

* requested changes

* update doc

* updates

* destroy flippers

* some requested changes

* update

* update

* ready

* update

* last changes

* update docs

* Hghl active button of CT, simplify activate/deactivate

* separate dom iterator

* unhardcode directions

* fixed a link in readme.md (#856)

* Fix Block selection via CMD+A (#829)

* Fix Block selection via CMD+A

* Delete editor.js.map

* update

* update

* Update CHANGELOG.md

* Improve style of selected blocks (#858)

* Cross-block-selection style improved

* Update CHANGELOG.md

* Fix case when property 'observer' in modificationObserver is not defined (#866)

* Bump lodash.template from 4.4.0 to 4.5.0 (#885)

Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.4.0...4.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump eslint-utils from 1.3.1 to 1.4.2 (#886)

Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump mixin-deep from 1.3.1 to 1.3.2 (#887)

Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>

* update bundle and readme

* Update README.md

* upd codeowners, fix funding

* Minor Docs Fix according to main Readme (#916)

* Inline Toolbar now contains Conversion Toolbar (#932)

* Block lifecycle hooks (#906)

* [Fix] Arrow selection (#964)

* Fix arrow selection

* Add docs

* [issue-926]: fix dom iterator leafing when items are empty (#958)

* [issue-926]: fix dom iterator leafing when items are empty

* update Changelog

* Issue 869 (#963)

* Fix issue 943 (#965)

* [Draft] Feature/tooltip enhancements (#907)

* initial

* update

* make module standalone

* use tooltips as external module

* update

* build via prod mode

* add tooltips as external module

* add declaration file and options param

* add api tooltip

* update

* removed submodule

* removed due to the incorrect setip

* setup tooltips again

* wip

* update tooltip module

* toolbox, inline toolbar

* Tooltips in block tunes not uses shorthand

* shorthand in a plus and block settings

* fix doc

* Update tools-inline.md

* Delete tooltip.css

* Update CHANGELOG.md

* Update codex.tooltips

* Update api.md

* [issue-779]: Grammarly conflicts (#956)

* grammarly conflicts

* update

* upd bundle

* Submodule Header now on master

* Submodule Marker now on master

* Submodule Paragraph now on master

* Submodule InlineCode now on master

* Submodule Simple Image now on master

* [issue-868]: Deleting multiple blocks triggers back button in Firefox (#967)

* Deleting multiple blocks triggers back button in Firefox

@evgenusov

* Update editor.js

* Update CHANGELOG.md

* pass options on removeEventListener (#904)

* pass options on removeEventListener by removeAll

* rebuild

* Merge branch 'release/2.16' into pr/904

* Update CHANGELOG.md

* Update inline.ts

* [Fix] Selection rangecount (#968)

* Fix #952 (#969)

* Update codex.tooltips

* Selection bugfix (#970)

* Selection bugfix

* fix cross block selection

* close inline toolbar when blocks selected via shift

* remove inline toolbar closing on cross block selection mouse up due to the bug (#972)

* [Feature] Log levels (#971)

* Decrease margins (#973)

* Decrease margins

* Update editor.licenses.txt

* Update src/components/domIterator.ts

Co-Authored-By: Murod Khaydarov <murod.haydarov@gmail.com>

* [Fix] Fix delete blocks api method (#974)

* Update docs/usage.md

Co-Authored-By: Murod Khaydarov <murod.haydarov@gmail.com>

* rm unused

* Update yarn.lock file

* upd bundle, changelog
2019-11-30 23:42:39 +03:00

14 KiB

Changelog

2.16

  • Improvements — Inline Toolbar design improved
  • Improvements — Conversion Toolbar now included in the Inline Toolbar #853
  • Improvements — All buttons now have beautiful Tooltips provided by CodeX Tooltips
  • New — new Tooltips API for displaying tooltips near your custom elements
    New API — Block lifecycle hooksNew Inline Tools API — Ability to specify Tool's title via title static getter.
  • Fix — On selection from end to start backspace is working as expected now #869Fix — Fix flipper with empty dom iterator #926
  • Fix — Normalize node before walking through children at isEmpty method 943Fix — Fixed Grammarly conflict #779Improvements — Module Listeners now correctly removes events with options #904Improvements — Styles API: .cdx-block default vertical margins decreased from 0.7 to 0.4 ems. — Fix — Fixed History Back on block deletion by Backspace in Firefox #967
  • Fix — Fixed getRangeCount call if range count is 0 #938
  • New — Log levels now available to suppress Editor.js console messages #962
  • Fix — Fixed wrong navigation on block deletion

2.15.1

  • Refactoring — Constants of tools settings separated by internal and external to correspond API
  • Refactoring — Created universal Flipper class that responses for navigation by keyboard inside of any Toolbars
  • Fix — First CMD+A on block with now uses default behaviour. Fixed problem with second CMD+A after selection clearing #827
  • Improvements — Style of inline selection and selected blocks improved
  • Fix - Fixed problem when property 'observer' in modificationObserver is not defined

2.15

  • New — New blocks.insert() API method #715.
  • New Conversion Toolbar — Ability to convert one block to another #704
  • New Cross-block selection — Ability to select multiple blocks by mouse and with SHIFT+ARROWS #703
  • Deprecatedblocks.insertNewBlock() method is deprecated. Use blocks.insert() instead.
  • Improvements — Inline Toolbar now works on mobile devices #706
  • Improvements — Toolbar looks better on mobile devices #706
  • Improvements — Now pasteConfig can return false to disable paste handling on your Tool #801
  • Fix — EditorConfig's onChange callback now fires when native inputs` content has been changed #794
  • Fix — Resolve bug with deleting leading new lines #726
  • Fix — Fix inline link Tool to support different link types like mailto and tel #809
  • Fix — Added typeof util method to check exact object type #805
  • Fix — Remove internal enableLineBreaks option from external Tool settings type description #825

2.14

  • Fix Config — User config now has higher priority than internal settings #771
  • New — Ability to work with Block Actions and Inline Toolbar from the keyboard by Tab. #705
  • Fix — Fix error thrown by click on the empty editor after blocks.clear() method calling #761
  • Fix — Fix placeholder property appearance. Now you can assign it via placeholder property of EditorConfig. #714
  • Fix — Add API shorthands to TS types #788

2.13

  • Improvements BlockSelection — Block Selection allows to select single editable element via CMD+A
  • New API — Added API methods to open and close inline toolbar #665
  • New Config - Added new property in EditorConfig holder, use this property for append Editor instead holderId. holder property now support reference on dom element. #696
  • Deprecated Config - holderId property now is deprecated and will removed in next major release. Use holder instead.
  • Fix Types — Fixed error with codex-notifier package #713
  • Improvements — Close inline toolbar after creating a new link.
  • New Config — Option minHeight for customizing Editor's bottom zone height added.

2.12.4

  • Improvements — CodeX.Shortcuts version updated to the v1.1 #684
  • Fix — Do not start multi-block selection on Toolbox and Inline Toolbar #646
  • Fix — Minor fixes of caret behaviour #663
  • Fix — Fix inline-link icon position in Firefox #674

2.12.3

  • Fix — Make Toolbox tooltip position font-size independent

2.12.2

  • New Inline Tools — pass tool settings from configuration to Tool constructor

2.12.1

  • Fix — Fix processing color-mod function in styles

2.12.0

  • New API - new blocks API method renderFromHTML

2.11.11

  • New — Add ability to pass configuration for internal Tools

2.11.10

  • Fix - Fix editor view on mobile devices

2.11.9

  • Fix - Fix inline toolbar buttons margin. Update dependencies list. Update tools for example page.

2.11.8

  • Fix — Block tunes margins now better works with more than 3 buttons

2.11.7

  • Fix Paste — Fix pasting into non-initial Blocks

2.11.6

  • Fix Paste — Polyfill for Microsoft Edge

2.11.5

  • Fix RectangeSelection — Redesign of the scrolling zones

2.11.4

  • Fix - Clear focus when click is outside the Editor instance

2.11.3

  • Fix — Fix CMD+A Selection on multiple Editor instances

2.11.2

  • Improvements — Docs updated and common enhancements

2.11.1

  • Fix RectangeSelection — Selection is available only for the main mouse button

2.11.0

  • New — Add API methods shorthands

2.10.0

  • New — Rename from CodeX Editor to Editor.js

2.9.5

  • New — Toolbox now have beautiful helpers with Tool names and shortcuts

2.9.4

  • Improvements — Prevent navigating back on Firefox when Block is removing by backspace

2.9.3

  • Fix — Handle paste only on initial Block

2.9.2

  • New — Blocks selected with Rectangle Selection can be also removed, copied or cut

2.9.1

  • Improvements — Migrate from postcss-cssnext to postcss-preset-env and disable postcss-custom-properties which conflicts with postcss-preset-env

2.9.0

  • New RectangeSelection — Ability to select Block or several Blocks with mouse

2.8.1

  • Fix Caret — Fix "History back" call on backspace in Firefox

2.8.0

  • Imporvements API — Added API methods to manage caret position

2.7.32

  • Improvements Types — TypeScript types sre updated

2.7.31

  • Fix — Caret now goes through elements without type attribute

2.7.30

  • Fix — Fixed selection behavior when text has modifiers form Inline Toolbar

2.7.29

  • Fix — cmd+x works only for custom selection now

2.7.28

2.2.27

  • New Mobile view — Editor now adopted for mobile devices
  • New Narrow mode — Editor now adopted for narrow containers

2.2.26

  • Improvements Caret — Improvements of the caret behaviour: arrows, backspace and enter keys better handling.

2.2.25

  • New Autofocus — Now you can set focus at Editor after page has been loaded

2.2.24

  • Improvements Paste handling — minor paste handling improvements

2.2.23

  • New Shortcuts — copy and cut Blocks selected by CMD+A

2.2—2.7

  • New Sanitize APISanitize Config of Block Tools now automatically extends by tags of Inline Tools that is enabled by current Tool by inlineToolbar option. You don't need more to specify a, b, mark, code manually. This feature will be added to fields that supports inline markup.
  • New Block Selection — Ability to select Block by CMD+A, and the whole Editor by double CMD+A. After that, you can copy (CMD+C), remove (Backspace) or clear (Enter) selected Blocks.
  • New Styles API — Added button class for stylization of any buttons provided by Tools with one unified style.
  • New Notifier API — methods for showing user notifications: on success, errors, warnings, etc.
  • New Block ToolTable constructor 💪
  • New If one of the Tools is unavailable on Editor initialization, its Blocks will be rendered with Dummy Block, describing that user can not edit content of this Block. Dummy Blocks can be moved, removed and saved as normal Blocks. So saved data won't be lost if one of the Tools is failed
  • New Public TS-types are presented.
  • Changes Tools API — options irreplaceable and contentless was removed.
  • Changes Tools APIPaste API: tags, patterns and mime-types now should be specified by Tool's pasteConfig static property. Custom Paste Event should be handled by onPaste(event) that should not be static from now.
  • Changes Tools API — options displayInToolbox and toolboxIcon was removed. Use toolbox instead, that should return object with icon and title field, or false if Tool should not be placed at the Toolbox. Also, there are a way to override toolbox {icon, title} settings provided by Tool with you own settings at the Initial Config.
  • Improvements — All Projects code now on TypeScript
  • Improvements — NPM package size decreased from 1300kb to 422kb
  • Improvements — Bundle size decreased from 438kb to 252kb
  • ImprovementsInline Toolbar: when you add a Link to the selected fragment, Editor will highlight this fragment even when Caret is placed into the URL-input.
  • Improvements — Block Settings won't be shown near empty Blocks of initialType by default. You should click on them instead.
  • ImprovementsonChange-callback now will be fired even with children attributes changing.
  • Improvements — HTMLJanitor package was updated due to found vulnerability
  • Improvements — Logging improved: now all Editor's logs will be preceded by beautiful label with current Editor version.
  • Improvements — Internal isEmpty checking was improved for Blocks with many children nodes (200 and more)
  • Improvements — Paste improvements: tags that can be substituted by Tool now will matched even on deep-level of pasted DOM three.
  • Improvements — There is no more «unavailable» sound on copying Block by CMD+C on macOS
  • Improvements — Dozens of bugfixes and small improvements

See a whole Changelog

2.1-beta changelog

  • New Tools API — support pasted content via drag-n-drop or from the Buffer. See documentation and example at the Simple Image Tool.
  • New Tools API — new sanitize getter for Tools for automatic HTML sanitizing of returned data. See documentation and example at the Paragraph Tool
  • New Added onChange-callback, fired after any modifications at the Editor. See documentation.
  • New New Inline Tool example — Marker
  • New New Inline Tool example — Code
  • New New Editor.js PHP — example of server-side implementation with HTML purifying and data validation.
  • Improvements - Improvements of Toolbar's position calculation.
  • Improvements — Improved zero-configuration initialization.
  • and many little improvements.