reference - Referencing text input fields in CKEditor dialogs -


I'm playing around this with some degree of success now ...

A CeEdit In the dialog, the text input field has been replaced with a unique number - like ID: 'txtUrl' id = '27_textinput'.

How do I refine it?

  // I think that something like this should be: var myfield = CKEDITOR.instances.myElement.document $ Body.getId ('txtUrl'); // maybe: var myfield = CKEDITOR.dialog.getContentElement ('info', 'txtUrl'); // and after: myfield.value = 'myvalue';  

But these do not work please help! Thanks in advance, R

This last solution was:

  Dialog = CKEDITOR.dialog.getCurrent (); Dialog.setValueOf ('info', 'txtUrl', "http://google.com"); return false;  

Comments