Srivastava
Srivastava

Reputation: 3578

javascript runtime error

I am using a ckeditor in replacement with a textbox id txtEditorAnswer but on running I found the following error in these lines

x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;

o.modes={wysiwyg:!!n.element.$.form};

if(x.elementMode==1&&y.is('textarea'))

var z=y.$.form&&new h(y.$.form);

Upvotes: 0

Views: 231

Answers (1)

Paul Butcher
Paul Butcher

Reputation: 6956

For the first line, I would guess that one of x, x.config, x.element or x.element.getAttribute, are undefined.

The other lines would follow a similar pattern. i.e. an object whose members you are trying to access, does not exist, or a function you are trying to call, does not exist.

As you are using a debugger, you should be able to inspect the variables to verify this.

Upvotes: 2

Related Questions