开发者

CKEditor: Text box in link dialog

开发者 https://www.devze.com 2023-01-06 20:38 出处:网络
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...

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

精彩评论

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