2

I wish users don't have the option which text format they want to use as shown here:

enter image description here

I have been playing around with the better formats module, Currently only works on Field API fields on fieldable entities implementing core style text processing. So this module only makes sure with which text format they will start off editing with, so this dCurrently only works on Field API fields on fieldable entities implementing core style text processing.oesn't do anything at all, as the users still have the option to choose which text format they would like to choose.

Besides hiding this option with CSS, is there another way to disable this option for specific users?

3 Answers 3

1

The simplify module will allow you to hide text format selection, and a lot of other bling too: https://drupal.org/project/simplify

The simplify module allows you to hide the text format selection globally on all content types, as in the attached screen. Alternately, you can disable text format selection for each content type individually.

enter image description here

I've really only used it one one site so far, but haven't had any trouble.

2
  • This doesn't work
    – Rafael
    Nov 28, 2013 at 9:59
  • How so? It's worked fine in my testing.
    – Dave Bruns
    Nov 28, 2013 at 15:41
0

There's an option called "Text processing" in the content type's body field settings (Content types > YourContentType > Manage fields > Body > Edit). If you check "Plain text", it should disappear.

enter image description here

3
  • I can't follow you, if you mean managing the content types of the structure. It's the module itself.
    – Rafael
    Nov 27, 2013 at 16:23
  • I don't think you need a module for this. You can do it directly via the Drupal interface. You are working with a content type, right?
    – Jeroen
    Nov 27, 2013 at 16:33
  • Yes, but I am working with CKEditor, within the manage fields there is not option to disable the text-format
    – Rafael
    Nov 27, 2013 at 16:39
0

In Drupal 9. Use can set the allowed_formats. If there is only one format, it will hide the select box

'body' => [
        '#type' => 'text_format',
        '#format'=> 'full_html',
        '#allowed_formats' => ['full_html'],
      ]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.