314 | | // Disabling it on IE for now, as it's blocking the browser (#3802). |
315 | | if ( !CKEDITOR.env.ie ) |
316 | | { |
317 | | editor.ui.add( 'Scayt', CKEDITOR.UI_MENUBUTTON, |
318 | | { |
319 | | label : editor.lang.scayt.title, |
320 | | title : editor.lang.scayt.title, |
321 | | className : 'cke_button_scayt', |
322 | | onRender: function() |
323 | | { |
324 | | command.on( 'state', function() |
325 | | { |
326 | | this.setState( command.state ); |
327 | | }, |
328 | | this); |
329 | | }, |
330 | | onMenu : function() |
331 | | { |
332 | | var isEnabled = plugin.isScaytEnabled( editor ); |
| 314 | editor.ui.add( 'Scayt', CKEDITOR.UI_MENUBUTTON, |
| 315 | { |
| 316 | label : editor.lang.scayt.title, |
| 317 | title : editor.lang.scayt.title, |
| 318 | className : 'cke_button_scayt', |
| 319 | onRender: function() |
| 320 | { |
| 321 | command.on( 'state', function() |
| 322 | { |
| 323 | this.setState( command.state ); |
| 324 | }, |
| 325 | this); |
| 326 | }, |
| 327 | onMenu : function() |
| 328 | { |
| 329 | var isEnabled = plugin.isScaytEnabled( editor ); |
336 | | return { |
337 | | scaytToggle : CKEDITOR.TRISTATE_OFF, |
338 | | scaytOptions : isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, |
339 | | scaytLangs : isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, |
340 | | scaytAbout : isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED |
341 | | }; |
342 | | } |
343 | | }); |
344 | | } |
| 333 | return { |
| 334 | scaytToggle : CKEDITOR.TRISTATE_OFF, |
| 335 | scaytOptions : isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, |
| 336 | scaytLangs : isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED, |
| 337 | scaytAbout : isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED |
| 338 | }; |
| 339 | } |
| 340 | }); |