editor.js/src/components
Jean-Gab de364175eb
Unique ids in blocks with nanoid (#1667)
* feat: Add unique ids for each block

* fix: Improve code based on code review

* feat(block ids): Use nanoid library for block id generation

* Remove unused files

* Add tests

* Fix lint & test

* fix: Remove unnecessary id generation, use nanoid(10) to shorten the id, add changelog and some documentation

Also improved some documentation along the lines and fixed linting

* Update copy-paste.spec.ts

* fix id generation, add api method

* Update blocks.spec.ts

* update tests

Co-authored-by: cobb <kebincheng@yeah.net>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-04-27 16:33:00 +03:00
..
block Unique ids in blocks with nanoid (#1667) 2021-04-27 16:33:00 +03:00
block-tunes [Feature] Block Tunes API (#1596) 2021-04-04 15:10:26 +03:00
errors Release: 2.19 (#1364) 2020-10-13 20:50:46 +03:00
i18n Replace typeofs (#1434) 2020-11-21 20:54:01 +03:00
inline-tools Refactoring based on LGTM (#1635) 2021-04-08 21:32:49 +03:00
modules Unique ids in blocks with nanoid (#1667) 2021-04-27 16:33:00 +03:00
tools Refactoring based on ESLint (#1637) 2021-04-08 22:53:11 +03:00
utils refactoring: notifier is util now (#1628) 2021-04-15 20:20:21 +03:00
__module.ts Refactoring based on ESLint (#1637) 2021-04-08 22:53:11 +03:00
blocks.ts Release / 2.18 (#1181) 2020-06-03 11:17:29 +03:00
core.ts refactoring(modules): Events module is util now (#1582) 2021-03-15 21:01:10 +03:00
dom.ts Replace typeofs (#1434) 2020-11-21 20:54:01 +03:00
domIterator.ts Release / 2.18 (#1181) 2020-06-03 11:17:29 +03:00
flipper.ts Replace typeofs (#1434) 2020-11-21 20:54:01 +03:00
polyfills.ts Release / 2.18 (#1181) 2020-06-03 11:17:29 +03:00
selection.ts [Bug] n.closest() not a function #1317 (#1600) 2021-04-08 22:13:00 +03:00
utils.ts Unique ids in blocks with nanoid (#1667) 2021-04-27 16:33:00 +03:00