• Resolved brinko99

    (@brinko99)


    I prefer to default to the HTML view during editing but wish to keep the Visual tab available as well. It seems that CKEditor overrides the default tab.

    I am using the following function in my functions.php file to set the default. With CKEditor enabled, it overrides this function somehow.

    add_filter( 'wp_default_editor', create_function('', 'return "html";') );

    Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor dczepierga

    (@dczepierga)

    Thx for report it. I make a little fix and comit it to SVN (at revision: 377230).
    Pls check last DEV version and write that it fixed your problem or not.

    Greetings

    Thread Starter brinko99

    (@brinko99)

    Thank you.

    Yes, this solution seems to work fine. Though, it does not seem to honor the ‘wp_default_editor’, rather it seems to simply use whatever the most recent selected editor was. But this is acceptable to me.

    Plugin Contributor dczepierga

    (@dczepierga)

    It’s hard to honor ‘wp_default_editor’, because this option doesn’t update ‘editor’ option placed in Javascript mirror of WordPress configuration – it’s bug in WordPress, so now we must wait for new version of WordPress and then everything should work as us expect ??

    Greetings

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ability to default to HTML view’ is closed to new replies.