Hi,
I would like to get the value of a dialog element on show make some changes to it then set the element to the new value the following returns an empty string
Any ideas would be great.
Thanks
I would like to get the value of a dialog element on show make some changes to it then set the element to the new value the following returns an empty string
dialog.on('show', function () {
var urlField = this.getContentElement('info', 'url');
var href = urlField.getValue();
alert(href);
});Any ideas would be great.
Thanks

Re: Dialog onShow Get Element Value
dialog.on('show', function () { var editor = this.getParentEditor(), element = CKEDITOR.plugins.link.getSelectedLink(editor); if (element != null) { if (!element.isReadOnly()) { if (element.is('a')) { var href = element.getAttribute('href'); element.setAttribute('href', newURL); element.setAttribute('cke-saved-href',newURL); } } } } });