editor.js/src/components
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
..
block chore(on-change): check data-mutation-free of parent nodes (#2548) 2024-01-10 22:27:19 +03:00
block-tunes fix(move-up-tune): scroll up offset for blocks above viewport (#2298) 2023-03-14 00:09:04 +03:00
errors
events chore(onChange): bugfix, batching, improvements of ModificationsObserver (#2349) 2023-05-12 20:50:48 +03:00
i18n
inline-tools
modules fix(slash): do not handle / + shift/alt, support for ascii keyboard (#2599) 2024-01-28 13:45:01 +03:00
tools feat(shortcuts): convert block by tools shortcut (#2419) 2023-07-20 23:27:18 +03:00
ui feat(ui): native-like tab behaviour, slash for toolbox (#2569) 2023-12-22 23:15:35 +03:00
utils fix issue #2523 (#2639) 2024-02-28 20:08:08 +03:00
__module.ts chore(onChange): bugfix, batching, improvements of ModificationsObserver (#2349) 2023-05-12 20:50:48 +03:00
blocks.ts fix(renderer): handle empty array as data.blocks (#2454) 2023-09-05 11:24:47 +03:00
core.ts feat(ui): native-like tab behaviour, slash for toolbox (#2569) 2023-12-22 23:15:35 +03:00
dom.ts feat(ui): native-like tab behaviour, slash for toolbox (#2569) 2023-12-22 23:15:35 +03:00
domIterator.ts
flipper.ts fix(block-events): split block with removing of selected text fragment (#2186) 2022-11-28 20:23:30 +04:00
polyfills.ts chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
selection.ts chore(perf): initialisation and rendering performance optimisations (#2430) 2023-08-08 22:17:09 +03:00
utils.ts feat(ui): native-like tab behaviour, slash for toolbox (#2569) 2023-12-22 23:15:35 +03:00