Support

Account

Home Forums Backend Issues (wp-admin) WYSIWYG conflict with CPT comment support

Solved

WYSIWYG conflict with CPT comment support

  • Hello-

    I noticed that one of my CPTs was working fine with the WYSIWYG field but another wasn’t. After turning off all unnecessary plugins and reverting back to the twentytwelve theme, I dug into the CPTs themselves.

    Once I removed ‘comments’ from ‘supports’ in how I developed my CPT the field worked just fine.

    Here are the errors I saw in the console:

    
    Uncaught ReferenceError: switchEditors is not defined post.php?post=83&action=edit:1009
    Uncaught ReferenceError: switchEditors is not defined post.php?post=83&action=edit:1008
    Uncaught TypeError: Cannot set property 'theme_advanced_buttons1' of undefined input.min.js?ver=4.2.2:13
    
  • Hi @thecorkboard

    The comment metabox should not be interfering with WP loading the WP Editor JS, so I’m not sure what the real issue is here.

    My bet is that you have a plugin that is causing the error. The plugin would most likely have some sort of functionality to do with comments.

    Perhaps you can test by disabling all plugins?

  • Weird. Can’t replicate it anymore. Well, I’ll let you know if I can nail it down again.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘WYSIWYG conflict with CPT comment support’ is closed to new replies.