X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fstylescombo%2Fplugin.js;h=f3ebfd52db785c126bd1a88f17d8ae0500a3f51d;hp=a5d4b7c3d6ea352020c4fde5c62f89aec99c22a0;hb=c9fdde67e6384bd5a66adc2b3bba5c4ce9db56c7;hpb=9873d66421922c7aef8be0f5d2ab51e547b19e66 diff --git a/_source/plugins/stylescombo/plugin.js b/_source/plugins/stylescombo/plugin.js index a5d4b7c..f3ebfd5 100644 --- a/_source/plugins/stylescombo/plugin.js +++ b/_source/plugins/stylescombo/plugin.js @@ -108,6 +108,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license if ( style.type == CKEDITOR.STYLE_INLINE && style.checkActive( elementPath ) ) style.remove( editor.document ); + else if ( style.type == CKEDITOR.STYLE_OBJECT && style.checkActive( elementPath ) ) + style.remove( editor.document ); else style.apply( editor.document );