On 12/15/2016 10:46 AM, Masayuki Nakano wrote: > Supporting multiple selection in editor makes our editor code > complicated.
Why is that so exactly? By necessity, the code already operates on one Range, right? so why can't we implement something like: Selection.ApplyToAllRanges(aFunction) that applies the existing code to all the ranges? And for functions that doesn't make sense to apply to all ranges, it's usually the first or last range you want, so let's make convenience functions for those too. Would that help solve the problem? /Mats _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform