editor.js/src
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
..
components fix issue #2523 (#2639) 2024-02-28 20:08:08 +03:00
styles feat(ui): native-like tab behaviour, slash for toolbox (#2569) 2023-12-22 23:15:35 +03:00
tools/stub chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
types-internal chore(onChange): bugfix, batching, improvements of ModificationsObserver (#2349) 2023-05-12 20:50:48 +03:00
codex.ts fix(toolbar): layout shrink after blocks removing (#2484) 2023-09-20 11:07:25 +03:00
env.d.ts fix(inline-toolbar): appearance logic improved (#2550) 2023-12-09 02:05:27 +03:00