Don't get the doctext in readonly view when the tab is not focused