Ticket #4717: 4717.patch

File 4717.patch, 1.4 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/link/plugin.js

     
    178178                selection.selectRanges( ranges );
    179179                editor.document.$.execCommand( 'unlink', false, null );
    180180                selection.selectBookmarks( bookmarks );
    181         }
     181        },
     182
     183        startDisabled : true
    182184};
    183185
    184186CKEDITOR.tools.extend( CKEDITOR.config,
  • _source/plugins/indent/plugin.js

     
    255255                }
    256256                else
    257257                        this.indentCssProperty = editor.config.contentsLangDirection == 'ltr' ? 'margin-left' : 'margin-right';
     258                this.startDisabled = name == 'outdent';
    258259        }
    259260
    260261        indentCommand.prototype = {
  • _source/core/editor.js

     
    331331                for ( var name in commands )
    332332                {
    333333                        command = commands[ name ];
    334                         command[ command.modes[ mode ] ? 'enable' : 'disable' ]();
     334                        command[ command.startDisabled ? 'disable' : command.modes[ mode ] ? 'enable' : 'disable' ]();
    335335                }
    336336        }
    337337
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy