Get dialog input field IDs in CKEditor

Posted by rt-uk on Stack Overflow See other posts from Stack Overflow or by rt-uk
Published on 2010-05-05T22:45:21Z Indexed on 2010/05/05 22:48 UTC
Read the original article Hit count: 142

Filed under:
|

Each input field in the CKEditor dialogs are renamed with a unique number, but the number changes depending on what options are visible.

I need to reference 'txtUrl' which has an id something like #35_textInput.

So far I have discovered that something like this should work:

alert(CKEDITOR.instances.myElement.document.$.body.getId('txtUrl'));

But it doesn't. Please help.

© Stack Overflow or respective owner

Related posts about ckeditor

Related posts about dialog