editor.js/test/cypress
VikhorKonstantin 8138ce95b2
fix issue #2523 (#2639)
* fix isMutationBelongsToElement function: make it return true if the whole text node is deleted inside of some descendant of the passed element

* isMutationBelongsToElement function shouldn't return true if some of the ancestors of the passed element were added or deleted, only if the element itself

* add test case verifying that 'onChange' is fired when the whole text inside some nested  descendant of the block is removed

* replace introduced dependency with ToolMock

* add comment explaining isMutationBelongsToElement behaviour in case of adding/removing the passed element itself

* fix formatting

* added some more explanation

* added record to the changelog

---------

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2024-02-28 20:08:08 +03:00
..
fixtures chore(api): blocks.update(id, data) method improved (#2443) 2023-08-19 07:53:42 +03:00
plugins Use Vite builder (#2300) 2023-04-13 22:25:29 +03:00
support feat(ui): native-like tab behaviour, slash for toolbox (#2569) 2023-12-22 23:15:35 +03:00
tests fix issue #2523 (#2639) 2024-02-28 20:08:08 +03:00
.eslintrc chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
tsconfig.json Block tunes as a popover (#2091) 2022-11-03 20:52:33 +03:00