X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fshowborders%2Fplugin.js;h=846a12b6460866267279335a3fa51592d77efae3;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=dc924e10100f99ca96934e0fbcda6de8bca5b024;hpb=f0610347140239143439a511ee2bd48cb784f470;p=ckeditor.git diff --git a/_source/plugins/showborders/plugin.js b/_source/plugins/showborders/plugin.js index dc924e1..846a12b 100644 --- a/_source/plugins/showborders/plugin.js +++ b/_source/plugins/showborders/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -115,7 +115,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license cssClass = attributes[ 'class' ], border = parseInt( attributes.border, 10 ); - if ( !border || border <= 0 ) + if ( ( !border || border <= 0 ) && ( !cssClass || cssClass.indexOf( showBorderClassName ) == -1 ) ) attributes[ 'class' ] = ( cssClass || '' ) + ' ' + showBorderClassName; } }