Ckeditor - Remove font and size selection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • William Thomas Jr
    Senior Member
    • Nov 2014
    • 526
    • 5.1.x

    Ckeditor - Remove font and size selection

    I spent an hour last night looking throughout various docs to remove the font selection and size selection in the ckeditor tool bar. I really would like to remove these options to prevent people from changing the font and size. Just disabling the bbcode leaves the font and size code in the content - so it is not an option.

    Your help would be really really appreciated!
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 4021
    • 5.7.X

    #2
    How about hiding them via CSS?

    Code:
    .cke_combo__font, .cke_combo__fontsize  { display: none; }

    Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

    Comment

    • William Thomas Jr
      Senior Member
      • Nov 2014
      • 526
      • 5.1.x

      #3
      Thanks Glenn!!

      Last edited by William Thomas Jr; Wed 3 Feb '16, 11:33pm.

      Comment

      • fenderbob
        Senior Member
        • Apr 2015
        • 116
        • 5.1.x

        #4
        Originally posted by Glenn Vergara
        How about hiding them via CSS?

        Code:
        .cke_combo__font, .cke_combo__fontsize { display: none; }
        Could you please expand on this answer? I also want to disallow people from changing the font and size. What file do I need to add this code to?

        Am I correct in thinking I would still need to disable size/font type BB codes from AdminCP > Options > BB Code Settings?

        Comment

        • William Thomas Jr
          Senior Member
          • Nov 2014
          • 526
          • 5.1.x

          #5
          Originally posted by fenderbob

          Could you please expand on this answer? I also want to disallow people from changing the font and size. What file do I need to add this code to?

          Am I correct in thinking I would still need to disable size/font type BB codes from AdminCP > Options > BB Code Settings?
          Add the above code to your additional_css. Disable the bb code so they won't be recognized even if typed in manually.

          Comment

          Related Topics

          Collapse

          Working...