when i add a prototype to the "Object",the ckeditor 3.6.3 cannot replace
textarea.
e.g.
Object.prototype.customeFun=function(){}
CKEDITOR.replace("div_id");
it will occur an error like " T[V].replace is not a function "
how can i do ?
textarea.
e.g.
Object.prototype.customeFun=function(){}
CKEDITOR.replace("div_id");
it will occur an error like " T[V].replace is not a function "
how can i do ?
Re: cannot create ckeditor
When you modify the prototype of Object, every Object in the page is modified, usually far beyond of what you need and although it's possible to protect the code against those changes it's not a trivial effort. Every for..in loop must be protected by checking if the property is a custom one with .hasOwnProperty, but as I said, that must be done for every loop, as soon as you forget about one it will break.
So lots of changes just because you're using something that it's frowned upon,... You can try to file a ticket requesting that change, but I'm not sure if it will be accepted or marked as invalid/wontfix.