Make setEditorHeightInLines/WidthInChars spec helpers work with React

Fixes #3019