X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fcolordialog%2Fplugin.js;h=b76aed2cd1aa208788f0b97e71ee37b19140e737;hb=6e682412d5cc0dfaedb376482e585bf2989c6863;hp=7006d682f0a3fb8336ea4ec651ac91b6ad87b1f1;hpb=8761695d9b70afe75905deaac88f78c1f8aeb32d;p=ckeditor.git diff --git a/_source/plugins/colordialog/plugin.js b/_source/plugins/colordialog/plugin.js index 7006d68..b76aed2 100644 --- a/_source/plugins/colordialog/plugin.js +++ b/_source/plugins/colordialog/plugin.js @@ -1,13 +1,16 @@ -( function() +/* +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.colordialog = { - CKEDITOR.plugins.colordialog = + requires : [ 'dialog' ], + init : function( editor ) { - init : function( editor ) - { - editor.addCommand( 'colordialog', new CKEDITOR.dialogCommand( 'colordialog' ) ); - CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' ); - } - }; + editor.addCommand( 'colordialog', new CKEDITOR.dialogCommand( 'colordialog' ) ); + CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' ); + } +}; - CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog ); -} )(); +CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog );