Better detection of text editor part of multipage editor