JS Erros on Custom Post Types
-
Hi,
I’m getting the following errors in the JS console on custom post types add/edit screen, when the editor window is not present:
Uncaught TypeError: Cannot read property 'top' of undefined (editor-expand.js?ver=4.0-alpha-20140709:270) Uncaught TypeError: Cannot read property 'hasClass' of undefined (editor-expand.js?ver=4.0-alpha-20140709:270)
Adding the editor window to the post type resolves the issue.
$args = array( 'supports' => array( 'title', 'editor' ) );
Ashley
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘JS Erros on Custom Post Types’ is closed to new replies.