Solved

Hide a button in ckeditor

Posted on 2016-08-09
1
89 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to dynamically set the form action using jQuery.
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)

696 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