Solved

Hide a button in ckeditor

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
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…

708 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

20 Experts available now in Live!

Get 1:1 Help Now