
Untitled
By: a guest on
May 15th, 2012 | syntax:
None | size: 0.52 KB | hits: 14 | expires: Never
Selecting input element with jQuery in CKEditor
$(this)
.parents("[role=tabpanel]")
.prevAll("[name=info]")
.find("label:contains(URL)")
.next()
.find("input")
dialog.setValueOf( 'info', 'txtUrl', newValue);
// get current dialog
var dialog = CKEDITOR.dialog.getCurrent();
// get the info tab in the dialog
dialog.selectPage('info');
// get the txtUrl element (found id using devtools plugin)
var tUrl = dialog.getContentElement('info', 'txtUrl');
// set this input box to by variable
tUrl.setValue(strLink);