Ticket #5433: 5433.patch

File 5433.patch, 1.7 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/link/dialogs/link.js

     
    414414                                                                                style : 'width : 100%;',
    415415                                                                                items :
    416416                                                                                [
    417                                                                                         [ 'http://' ],
    418                                                                                         [ 'https://' ],
    419                                                                                         [ 'ftp://' ],
    420                                                                                         [ 'news://' ],
     417                                                                                        [ 'http://', null, { dir : 'ltr'} ],
     418                                                                                        [ 'https://', null, { dir : 'ltr' } ],
     419                                                                                        [ 'ftp://', null, { dir : 'ltr' } ],
     420                                                                                        [ 'news://', null, { dir : 'ltr' } ],
    421421                                                                                        [ editor.lang.link.other , '' ]
    422422                                                                                ],
    423423                                                                                setup : function( data )
  • _source/plugins/dialogui/plugin.js

     
    598598                                        cleanInnerDefinition( myDefinition );
    599599                                        for ( var i = 0, item ; i < elementDefinition.items.length && ( item = elementDefinition.items[i] ) ; i++ )
    600600                                        {
    601                                                 innerHTML.push( '<option value="',
    602                                                         CKEDITOR.tools.htmlEncode( item[1] !== undefined ? item[1] : item[0] ), '" /> ',
     601                                                innerHTML.push( '<option ' );
     602                                                var optionAttrs = item[ 2 ];
     603                                                // Write the option attributes.
     604                                                for ( var name in optionAttrs )
     605                                                        innerHTML.push( name + '="' + CKEDITOR.tools.htmlEncode( optionAttrs[ name ] ) + '" ' );
     606                                                innerHTML.push( ' value="',
     607                                                        CKEDITOR.tools.htmlEncode( item[1] != undefined ? item[1] : item[0] ), '" /> ',
    603608                                                        CKEDITOR.tools.htmlEncode( item[0] ) );
    604609                                        }
    605610
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy