editor.js/docs
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
..
assets chore(docs): use local images in docs files (#2239) 2023-03-21 18:59:57 +00:00
api.md chore(docs): use local images in docs files (#2239) 2023-03-21 18:59:57 +00:00
block-tunes.md Tunes improvements for inline actions (#1722) 2021-07-21 21:33:09 +03:00
caret.md Rename to Editor.js (#625) 2019-02-28 14:01:32 +03:00
CHANGELOG.md fix issue #2523 (#2639) 2024-02-28 20:08:08 +03:00
installation.md docs: replace holderId config by holder (#2525) 2023-11-02 19:46:09 +03:00
releases.md chore(docs): use local images in docs files (#2239) 2023-03-21 18:59:57 +00:00
sanitizer.md Rename to Editor.js (#625) 2019-02-28 14:01:32 +03:00
toolbar-settings.md Rename to Editor.js (#625) 2019-02-28 14:01:32 +03:00
tools-inline.md chore(docs): use local images in docs files (#2239) 2023-03-21 18:59:57 +00:00
tools.md docs: replace holderId config by holder (#2525) 2023-11-02 19:46:09 +03:00
usage.md chore(docs): use local images in docs files (#2239) 2023-03-21 18:59:57 +00:00