Skip to content Skip to sidebar Skip to footer

Cannot Read Property 'getcomputedstyle' Of Undefined Ckeditor

I use ckeditor on my website, and from time to time when I load my page I get this error which blocks the ckeditor: 'Cannot read property 'getComputedStyle' of undefined ckeditor'

Solution 1:

I was getting a similar error and it was caused by calling $('#id').empty(); Followed the ideas in this post:

How do I clear the contents of a div without innerHTML = "";

and used this code:

var node = document.getElementById('id');
 while (node.hasChildNodes()) {
    node.removeChild(node.firstChild);
}

Solution 2:

I found the problem. It was a problem with a jquery plugin mscustomscrollbar. To resolve this I deleted the plugin and used css3 to style scrollbar.

Solution 3:

I Had the same problem. My solution was: Client was using adblock pro, and I found out that in adblock our page that is using ckeditor is blocked! Removed our page from adbblock and it works fine now!

Solution 4:

I was also facing same issue. I put a delay on the .replace() and it's working fine now. As this is not a good solution I Know but I didn't find the exact cause and also it's generating randomly so finally I put a setTimeout() and the problem has been resolved

Post a Comment for "Cannot Read Property 'getcomputedstyle' Of Undefined Ckeditor"