Environment- beta, test2
1>Open the language inspector on an empty page.
2>While the inspector is open, select any heading format.
JS error Uncaught Error: “Offset could not be translated to a DOM element and offset: 2”.Screenshot attached.
Environment- beta, test2
1>Open the language inspector on an empty page.
2>While the inspector is open, select any heading format.
JS error Uncaught Error: “Offset could not be translated to a DOM element and offset: 2”.Screenshot attached.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Close inspectors before executing a ve.ui.Tool command | VisualEditor/VisualEditor | master | +12 -2 |
Actually I got this, but I had to start with a blank document. Will change the task description.
Comes down to the inspector closing, and trying to restore the selection by doing context.getSurface().getView().focus(); ...and discovering that it has a bad idea what the selection should be. (Specifically, it thinks the selection is at index 2, when the max allowable would be 1.)
Change 250646 had a related patch set uploaded (by DLynch):
Forcibly trigger a selection when using a Tool, to close inspectors
Change 250904 had a related patch set uploaded (by DLynch):
Add ve.Scheduler, use it to avoid conflict in ve.ui.Tool
Change 250646 merged by jenkins-bot:
Close inspectors before executing a ve.ui.Tool command