Is it possible to add several wider buttons to the CKEditor toolbar?
I know how to make all of them wider by changing width parameter in editor.css:
but I only need several buttons, in similar to "source button" style:
Any hints?
UPDATE
Ok, lets say I want to widen icon of this plugin:
CKEDITOR.plugins.add( 'timestamp',
{
init: function( editor )
{
editor.addCommand( 'insertTimestamp',
{
exec : function( editor )
{
var timestamp = new Date();
editor.insertHtml( 'The current date and time is: <em>' + timestamp.toString() + '</em>' );
}
});
editor.ui.addButton( 'Timestamp',
{
label: 'Insert Timestamp',
command: 'insertTimestamp',
icon: this.path + 'images/timestamp.png'
} );
}
} );
and former result I got by adding this:
.cke_button_insertTimestamp { width: 32px !important; }
this doesn't change anything:
#cke_11 {
width: 32px ;
}
no matter what integer I choose, and I don't see any integers like you mentioned while inspecting. I have CKEditor build in IPBoard maybe that's the issue?
What should I add? Sorry for me being noob
UPDATE
Ok I got this at last and have identical results - half icon. Is it about this .cke_icon class which defines 16px width? Many icons share this class. Don't know how to get around or delete it
UPDATE
#cke_61 .cke_icon { width:32px; }
This code did the job thanks a million!
Final question, how do I add horizontal separator below my new icon row like other rows have:
Vertical one I've added in ips_config.js using this:
['Timestamp'],['-'],
but horizontal I have no idea
.cke_button_insertTimestamp
. I think you need the child element. – allcapscke_icon
with#cke_61 .cke_icon { width:32px; }
. This is basic CSS. Search and read about 'css selectors'. – allcaps