editor.js/src/components/modules
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
..
api Unique ids in blocks with nanoid (#1667) 2021-04-27 16:33:00 +03:00
toolbar Prevent the leak of codex-tooltip when Editor.js is destroyed (#1590) 2021-04-14 17:49:22 +03:00
blockEvents.ts Fix copy in FireFox (#1632) 2021-04-08 22:19:49 +03:00
blockManager.ts Unique ids in blocks with nanoid (#1667) 2021-04-27 16:33:00 +03:00
blockSelection.ts Fix copy in FireFox (#1632) 2021-04-08 22:19:49 +03:00
caret.ts Refactoring based on LGTM (#1635) 2021-04-08 21:32:49 +03:00
crossBlockSelection.ts refactoring(modules): the listeners module now a util (#1572) 2021-03-02 16:25:52 +03:00
dragNDrop.ts Fix BlockManager.setCurrentBlockByChildNode() with multiple Editor.js instances 2021-02-17 18:01:28 +03:00
modificationsObserver.ts refactoring(modules): the listeners module now a util (#1572) 2021-03-02 16:25:52 +03:00
paste.ts Unique ids in blocks with nanoid (#1667) 2021-04-27 16:33:00 +03:00
readonly.ts [Refactoring] Tools (#1595) 2021-03-31 23:29:41 +03:00
rectangleSelection.ts refactoring(modules): the listeners module now a util (#1572) 2021-03-02 16:25:52 +03:00
renderer.ts Unique ids in blocks with nanoid (#1667) 2021-04-27 16:33:00 +03:00
saver.ts Unique ids in blocks with nanoid (#1667) 2021-04-27 16:33:00 +03:00
tools.ts Fix #1640 (#1649) 2021-04-14 19:07:16 +00:00
ui.ts Create a new block when clicked at the bottom (#1605) 2021-04-08 21:38:08 +03:00