The project I am working on has several templates, some which do not use the main WordPress editor. For those templates, I typically hide the editor via jQuery's
The problem I ran into was that when editing a page using a template that did not use the editor, then switching the template to one that used the editor, the editor would be broken until the user scrolled, resized the window, etc. This is due to how WordPress 4.0 now resizes the editor window automatically to fit the content in it.
The trick to fix this is to turn the auto resizing off and on again, which fires off all of the auto resize functions. The methods are: