X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fcolorbutton%2Fplugin.js;h=77c002ad2acdf1d82401349e016c8615c325d423;hb=4e90e78dc97789709ee7404359a5517540c27553;hp=16ad1f2813722a265f46bb8bcf9747f7208d0232;hpb=48b1db88210b4160dce439c6e3e32e14af8c106b;p=ckeditor.git diff --git a/_source/plugins/colorbutton/plugin.js b/_source/plugins/colorbutton/plugin.js index 16ad1f2..77c002a 100644 --- a/_source/plugins/colorbutton/plugin.js +++ b/_source/plugins/colorbutton/plugin.js @@ -66,7 +66,7 @@ CKEDITOR.plugins.add( 'colorbutton', color; // Find the closest block element. - block = path.block || path.blockLimit; + block = path.block || path.blockLimit || editor.document.getBody(); // The background color might be transparent. In that case, look up the color in the DOM tree. do