Solved

Hide a button in ckeditor

Posted on 2016-08-09
1
76 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 can i make 2 columns? 4 37
check a checkbox of a checkboxes group in bootstrap 2 40
Autocomplete with Jquery Question 2 19
Responsive Font Size 6 26
This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

809 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