Could someone tell me how I could add a (or multiple) 'optgroups' ( <optgroup label="">..</optgroup>) to the linktype-dropdown menu in the link-dialog?
Also I'm trying to find out how to edit the URL input box, Can't seem to find this in the current dialog-code.
I placed a few extra URL's in the linktype-dropdown but when these are clicked, I want to fill the URL field with a pre-defined URL.
Hope this is clear, English isn't my best language.
Also I'm trying to find out how to edit the URL input box, Can't seem to find this in the current dialog-code.
I placed a few extra URL's in the linktype-dropdown but when these are clicked, I want to fill the URL field with a pre-defined URL.
Hope this is clear, English isn't my best language.

Re: Preparing links in link dialog
Re: Preparing links in link dialog
Re: Preparing links in link dialog
// Compose the URL. switch ( data.type || 'url' ) { case 'url': var protocol = ( data.url && data.url.protocol != undefined ) ? data.url.protocol : 'http://', url = ( data.url && data.url.url ) || ''; attributes._cke_saved_href = ( url.indexOf( '/' ) === 0 ) ? url : protocol + url; break; case 'anchor': var name = ( data.anchor && data.anchor.name ), id = ( data.anchor && data.anchor.id ); attributes._cke_saved_href = '#' + ( name || id || '' ); break; case 'email':Re: Preparing links in link dialog
Thanx for your reply.
I already managed to find out how to add extra items to the list.
I added something like this:
As you can see I have placed a couple of extra items in the list. Because there is no need for translations I have 'hardcodded' the labels.
I want to create a list with pages from a database in this menu so I also need the URL to a page in de second parameter. This URL must be placed in the URL field in de dialog. But I cant seem to place anything in this field because I can't identify the field. The ID of the field is not always the same... (Nice going on the development!)
CKeditor support didn't even want to resolve this little issue for money... Maybe they don't know either? :p
CKeditor is a nice looking new version of FCKeditor. But with all Js coded, it's a hell to change the content of the dialogs.
The people from CKeditor claim: "Easy to customize"... I claim: "Not easy to customize".
I think I just stop with trying to build someting in the dialog. Maybe a extra CMS tool for getting a URL of page is faster done....