Use editor-holder instead of window for resize events