Ticket #3041: 3041.patch
File 3041.patch, 1.7 KB (added by , 15 years ago) |
---|
-
_source/plugins/colorbutton/plugin.js
68 68 var output = [], 69 69 colors = CKEDITOR.config.colorButton_colors.split( ',' ); 70 70 71 if ( !clickFn)72 {73 clickFn = CKEDITOR.tools.addFunction( function( color, type)71 clickFn = CKEDITOR.tools.addFunction( function( color, type ) 72 { 73 if ( color == '?' ) 74 74 { 75 if ( color == '?' ) 76 { 77 // TODO : Implement the colors dialog. 78 // editor.openDialog( '' ); 79 return; 80 } 75 // TODO : Implement the colors dialog. 76 // editor.openDialog( '' ); 77 return; 78 } 81 79 82 80 editor.focus(); 83 81 84 85 86 87 88 82 if ( saveRanges ) 83 { 84 editor.getSelection().selectRanges( saveRanges ); 85 saveRanges = false; 86 } 89 87 90 88 panel.hide(); 91 89 92 90 var style = new CKEDITOR.style( config['colorButton_' + type + 'Style'], { color : color || '#000' } ); 93 91 94 if ( color ) 95 style.apply( editor.document ); 96 else 97 style.remove( editor.document ); 98 }); 99 } 92 if ( color ) 93 style.apply( editor.document ); 94 else 95 style.remove( editor.document ); 96 }); 100 97 101 98 // Render the "Automatic" button. 102 99 output.push(