开发者

CKEditor: Text box in link dialog

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜