WordPress.org

Forums

WordPress SEO by Yoast
Hiding Editor (WYSIWYG) breaks javascript and edit screen. (2 posts)

  1. MrVictor
    Member
    Posted 4 years ago #

    Hi,

    If you create a custom post type and disable the default WordPress WYSIWYG-editor there is an error in the plugins javascript, wp-seo-metabox.js on line 65. Because "str" is empty because there's no editor (#content).

    desc = jQuery("#editorcontainer #content").val();
            desc = yst_strip_tags( desc );

    . This causes alot of wierd behaviours on the Edit page!

    function yst_strip_tags( str ) {
        return str.replace(/<\/?[^>]+>/gi, '');
    }

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Joost de Valk
    Member
    Plugin Author

    Posted 4 years ago #

    I think that got fixed in 0.3.5, also, you can disable the WP SEO box for a post type on the SEO -> Dashboard page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic