Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.4.3
[ckeditor.git]
/
_source
/
plugins
/
menubutton
/
plugin.js
diff --git
a/_source/plugins/menubutton/plugin.js
b/_source/plugins/menubutton/plugin.js
index
bd98f79
..
ae80bbb
100644
(file)
--- a/
_source/plugins/menubutton/plugin.js
+++ b/
_source/plugins/menubutton/plugin.js
@@
-40,15
+40,13
@@
CKEDITOR.UI_MENUBUTTON = 5;
\r
menu.onHide = CKEDITOR.tools.bind( function()
\r
{
\r
\r
menu.onHide = CKEDITOR.tools.bind( function()
\r
{
\r
- this.setState( _.previousState );
\r
+ this.setState( this.modes && this.modes[ editor.mode ] ? _.previousState : CKEDITOR.TRISTATE_DISABLED );
\r
},
\r
this );
\r
\r
// Initialize the menu items at this point.
\r
if ( this.onMenu )
\r
},
\r
this );
\r
\r
// Initialize the menu items at this point.
\r
if ( this.onMenu )
\r
- {
\r
menu.addListener( this.onMenu );
\r
menu.addListener( this.onMenu );
\r
- }
\r
}
\r
\r
if ( _.on )
\r
}
\r
\r
if ( _.on )
\r