Find and Replace highlight words incorrectly after inline widget with text inside #11162
Labels
package:find-and-replace
squad:core
Issue to be handled by the Core team.
support:2
An issue reported by a commercially licensed client.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
What is the expected result of the above steps?
❌ Actual result
What is the actual result of the above steps?
❓ Possible solution
After some consulting with @niegowski, it has turned out that
rangeToText
method inckeditor5-find-and-replace/src/utils.js
had to be changed to:The key difference is a chnage to
range.getItems( { shallow: true } )
fromrange.getItems()
.📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: