Ticket #3805: 3805.patch

File 3805.patch, 2.9 KB (added by Tobiasz Cudnik, 15 years ago)
  • _source/plugins/scayt/plugin.js

     
    311311                                        }
    312312                                });
    313313
    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 );
    333330
    334                                                         editor.getMenuItem( 'scaytToggle' ).label = editor.lang.scayt[ isEnabled ? 'disable' : 'enable' ];
     331                                                editor.getMenuItem( 'scaytToggle' ).label = editor.lang.scayt[ isEnabled ? 'disable' : 'enable' ];
    335332
    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                                });
    345341
    346342                        // If the "contextmenu" plugin is loaded, register the listeners.
    347343                        if ( editor.contextMenu && editor.addMenuItems )
  • CHANGES.html

     
    7777                <li><a href="http://dev.fckeditor.net/ticket/3829">#3829</a> : Fixed remove empty link on output data.</li>
    7878                <li><a href="http://dev.fckeditor.net/ticket/3730">#3730</a> : Indent is performing on the whole
    7979                        block instead of selected lines in enterMode = BR.</li>
     80                <li><a href="http://dev.fckeditor.net/ticket/3805">#3805</a> : Enabled SCAYT plugin for IE.</li>
    8081        </ul>
    8182        <h3>
    8283                CKEditor 3.0 RC</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy