hide dialog underlay and focus editor before inserting table, fixes #17206