Hi I want to integrate the ckeditor into my small CMS. And I want to add a new option for internal sitelinks in the Link-Dialog is there any tutorial where I can read more about developing with/for ckeditor?
Thu, 09/03/2009 - 17:47
#1
Re: Additional Dialogs
this isn't the easiest to do and it is very simple to make errors while doing it, so test a lot while you are going along.
I did it and this is how I did it:
file changed
/_source/plugins/link/dialogs/link.js
First:
Add you CMS to the linktype dropdown
find the text: id : 'linkType'
this is the element which has the select box of all the options for links
in items just add a name as a handle for your CMS link this is what I did
Re: Additional Dialogs
If you could show the sample code for the php or perl script that generates the set of cms links and the js code for how to trigger the right method in the opener once you select a cms link, that would be great.
Re: Additional Dialogs
I think cms.data is not even defined......
quite urgent guys.
Re: Additional Dialogs
Re: Additional Dialogs
Unfortunately, I'm having trouble getting started though - in Step 1, when I add my new element to the linktype in /_source/plugins/link/dialogs/link.js as follows:
I save and reload the page, but the items in the linkType dropdown have not changed - they remain:
"URL"
"Link to anchor in the text"
"E-mail"
Obviously I need to get this part working before moving on to step two. Any suggestions? Is there another file that needs to be changed or refreshed in order to get the changes to appear?
Thanks in advance!
Re: Additional Dialogs
Added this to _source/lang/en.js ('en' is set as the language in config.js - even though it should be defaulting) :
And this to _source/plugins/link/dialogs/link.js :
Re: Additional Dialogs
Re: Additional Dialogs
Re: Additional Dialogs
I am developing a CMS and I need help with the code in this topic. My article pages will be stored in mysql. Is there any way, I can populate a list from the db.
Let me know if it is possible and if anyone can help me with the code.
Thanks,
Darshan