X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fshowborders%2Fplugin.js;h=443a7754fb4c3a819e7d19a1b3d3d34e3703d970;hp=dc924e10100f99ca96934e0fbcda6de8bca5b024;hb=e73319a12b56100b29ef456fd74114fe5519e01c;hpb=f0610347140239143439a511ee2bd48cb784f470 diff --git a/_source/plugins/showborders/plugin.js b/_source/plugins/showborders/plugin.js index dc924e1..443a775 100644 --- a/_source/plugins/showborders/plugin.js +++ b/_source/plugins/showborders/plugin.js @@ -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; } }