#3868: [chrome] SCAYT toolbar options are in reversed order ----------------------------------+----------------------------------------- Reporter: tobiasz.cudnik | Owner: tobiasz.cudnik Type: Bug | Status: assigned Priority: Normal | Milestone: CKEditor 3.0 Component: General | Version: Keywords: Confirmed V8 Review? | ----------------------------------+-----------------------------------------
Comment(by garry.yao): It seems for me the menu item array is immutable, if that's true, we could easily alter the '''CKEDITOR.menu::add''' function on L107 to build a second column for used as the secondary comparison key: {{{ add : function( item ) { // Later we may sort the items, but Array#sort is not stable in // some browsers, here we're forcing the original sequence with // 'order' attribute if it hasn't been assigned. if ( !item.order ) item.order = this.items.length; this.items.push( item ); }, }}} -- Ticket URL: <http://dev.fckeditor.net/ticket/3868#comment:7> FCKeditor <http://www.fckeditor.net/> The text editor for Internet ------------------------------------------------------------------------------ _______________________________________________ FCKeditor-Trac mailing list FCKeditor-Trac@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fckeditor-trac