Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  Jason 5 years, 1 month ago.

  • Author
    Posts
  • #1668

    Jason
    Keymaster

    Greetings!

    I’m trying to display an editor field that hides the Visual/Text tabs, but leaves it in Text mode. Hiding the tabs is easy enough with quicktags => false, but that leaves it in the WYSIWYG mode. Can someone point me in the right direction?

    Thanks!

  • #1670

    Steve
    Keymaster

    Try this: add_filter('user_can_richedit', '__return_false', 11);

  • #1671

    Steve
    Keymaster

    Even easier. The editor field supports this. Pass false to the tinymce parameter >

  • #1672

    Jason
    Keymaster

    You’re actually accomplishing exactly in the reply box (what I’m typing in now) what I’m going for. If I set tinymce => false it removes everything and makes it a glorified textarea. I’d still like the HTML buttons to be there.

    The add_filter method has the same result.

    Thanks!

You must be logged in to reply to this topic.