mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-14 16:05:28 +00:00
Imported CKEDITOR 3.0
Monotone-Parent: 5f9c08dd6b5b34d815ddb2108abbf4055e846934 Monotone-Revision: b2cf7eda0ef8f15fb6e78f8c38a7406a47bcdd2f Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-08-26T14:03:12 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -99,7 +99,14 @@ CKEDITOR.ui.button.prototype =
|
||||
// Get the command name.
|
||||
var command = this.command;
|
||||
|
||||
if ( command )
|
||||
if ( this.modes )
|
||||
{
|
||||
editor.on( 'mode', function()
|
||||
{
|
||||
this.setState( this.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
|
||||
}, this);
|
||||
}
|
||||
else if ( command )
|
||||
{
|
||||
// Get the command instance.
|
||||
command = editor.getCommand( command );
|
||||
@@ -130,7 +137,6 @@ CKEDITOR.ui.button.prototype =
|
||||
' class="', classes, '" href="javascript:void(\'', ( this.title || '' ).replace( "'", '' ), '\')"' +
|
||||
' title="', this.title, '"' +
|
||||
' tabindex="-1"' +
|
||||
' role="button"' +
|
||||
' hidefocus="true"' );
|
||||
|
||||
// Some browsers don't cancel key events in the keydown but in the
|
||||
|
||||
Reference in New Issue
Block a user