X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fsmiley%2Fdialogs%2Fsmiley.js;h=8371fb13aae939f3388286fbbc6b64584b1860df;hb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;hp=e13439b6a301d9c4f70999a3a0c29911bc4e54a6;hpb=8665a7c6c60586526e32e8941fe2896739b6ebfb;p=ckeditor.git diff --git a/_source/plugins/smiley/dialogs/smiley.js b/_source/plugins/smiley/dialogs/smiley.js index e13439b..8371fb1 100644 --- a/_source/plugins/smiley/dialogs/smiley.js +++ b/_source/plugins/smiley/dialogs/smiley.js @@ -8,7 +8,7 @@ CKEDITOR.dialog.add( 'smiley', function( editor ) var config = editor.config, lang = editor.lang.smiley, images = config.smiley_images, - columns = 8, + columns = config.smiley_columns || 8, i; /** @@ -21,9 +21,7 @@ CKEDITOR.dialog.add( 'smiley', function( editor ) var target = evt.data.getTarget(), targetName = target.getName(); - if ( targetName == 'td' ) - target = target.getChild( [ 0, 0 ] ); - else if ( targetName == 'a' ) + if ( targetName == 'a' ) target = target.getChild( 0 ); else if ( targetName != 'img' ) return; @@ -133,7 +131,7 @@ CKEDITOR.dialog.add( 'smiley', function( editor ) }); // Build the HTML for the smiley images table. - var labelId = 'smiley_emtions_label' + CKEDITOR.tools.getNextNumber(); + var labelId = CKEDITOR.tools.getNextId() + '_smiley_emtions_label'; var html = [ '
' + @@ -151,13 +149,13 @@ CKEDITOR.dialog.add( 'smiley', function( editor ) var smileyLabelId = 'cke_smile_label_' + i + '_' + CKEDITOR.tools.getNextNumber(); html.push( - '' + + '' + '', - '', + '