I'm trying to inter开发者_Go百科act with a text box in the Link dialog (get the value and set the value). Started with what's already there but it's not working...
CKEDITOR.dialog.add('link', function (a)
{
var b = function ()
{
var s = this.getDialog(),
z = s.getContentElement('info', 'txtUrl');
z.setValue('asdasd');
});
});
Any ideas will be helpful as I'm sure I'm almost there!
R
This was the final solution:
var dialog = CKEDITOR.dialog.getCurrent();
dialog.setValueof('info','txtUrl','http://google.com');
return false;
Happy days! Thanks for your help,
R
精彩评论