Solved

Hide a button in ckeditor

Posted on 2016-08-09
1
67 Views
Last Modified: 2016-08-11
HI,
I am using Format plugin of ckeditor. I need its functionality so that when i insert a html containing <h1> tags etc into ckeditor using javascript it displays the heading n all properly. But i dont want to see the Format button there in the toolbar.
It automatically appears when i add the format plugin into it.
Any ideas around it ?

Thanks
0
Comment
Question by:Rohit Bajaj
1 Comment
 
LVL 20

Accepted Solution

by:
Russ Suter earned 500 total points
ID: 41749414
Looking at the ckeditor website I see a span that contains the Format dropdown. It has a unique class of "cke_combo__format" assigned to it. Adding the following to a style sheet should do what you need:
.cke_combo__format {
    display: none;
}

Open in new window

If that doesn't work try this:
[code].cke_combo__format {
    display: none !important;
}

Open in new window

[/code]
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to use embargo Date/time in php 29 39
Jquery 10 20
How to show span when clicked on? 10 23
Downside of adding characters set in ASP pages 6 23
Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question