It just uses
textContent of a node and checks for
indexOf, nothing complex. I did not really want to present this tool or its features, it should rather serve as an example. Currently it’s probably not that bulletproof, since I did not test all filters etc.
My question is rather which kind of queries or manipulation could be simplified with such a tool and are common when solving editor issues.
For example simple helper as:
$myNode.hasMark() / removeMark() / addMark() / toggleMark()
So this topic was rather meant for discussion to assamble ideas etc, but it seems not to be that interesting
I think its a good idea to keep the core clean, without too much convenience functions, but I think a tool like this as seperate module could increase the productivity especially for beginners.
Nonetheless, for now I’ll add my own usecases to the tool, would be great if there will be an “official” module for this in the future.