Hi all,
I'm currently trying to add some custom tabs with the link and image popup, I was able to do this within the FCKeditor without any real hardship. using JQuery to run the on click events on tabs and setting of values.
But this no longer seem to cut it as the ID's are now dynamic and running command like:
Setting values:
The below works but feels like a short term solution.
var strLink = '/home.php';
$('#69_textInput').value(strLink);
ideally something like CKEDITOR.dialog.setFieldValue('link','info','url',strLink)
And the changign of the selected tab in the Link popup:
CKEDITOR.dialog.focusTab('link','info')
I know it should be somewhere in the API cut for the life me cannot locate it.
I'm currently trying to add some custom tabs with the link and image popup, I was able to do this within the FCKeditor without any real hardship. using JQuery to run the on click events on tabs and setting of values.
But this no longer seem to cut it as the ID's are now dynamic and running command like:
Setting values:
The below works but feels like a short term solution.
var strLink = '/home.php';
$('#69_textInput').value(strLink);
ideally something like CKEDITOR.dialog.setFieldValue('link','info','url',strLink)
And the changign of the selected tab in the Link popup:
CKEDITOR.dialog.focusTab('link','info')
I know it should be somewhere in the API cut for the life me cannot locate it.
Re: Changing tabs within a popup / and setting field values
cya in 3 months.
Good luck all.
4 years 7 months later
I did it like this
var rang = CKEDITOR.dialog.getCurrent(),
zang = rang.getContentElement( 'tabname', 'fieldname' ),
pang = zang.getInputElement().$;
pang.value = 'Your Value';
zang.select();