Solved

Hide a button in ckeditor

Posted on 2016-08-09
1
53 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now