Log in or register to post comments
Last post
Link to your own pages in link dialog
This plugin adds a select field to your link dialog.


License

Licensed under the terms of the GPL.


Download

links_to_own_pages.zip


Installation

1. Extract the archiv and copy the "internpage" folder to CKEditors "plugins" folder.
2. In the CKEditor configuration file (config.js) add the following code:

config.extraPlugins = 'internpage';


3. In pages.php you find an example that outputs a list of files stored in a folder. Change this for your needs.


Update

Fixed Bug: editor is not defined.
Add a compressed version.

Attachments: 

Re: Link to your own pages in link dialog
Tried this. Added path to pages.php and tested that.
Put the specified line in config.js - no change in link dialog behaviour
then tried including extraPlugins: 'internpage' in my sample .html
This throws the following error (testing in Chrome):
Uncaught ReferenceError: editor is not defined at plugin.js 28

Any suggestions pls..
Thx Paul
Re: Link to your own pages in link dialog
Hacked it to replace the reference by a constant. Works like that (english only).
                        label : 'Internal Page', //editor.lang.internpage.internpage,

Still learning how plugins work so please advise correct fix.
Thx Paul
Re: Link to your own pages in link dialog
Sorry. First time the plugin was only in german. As I have translate it, I forgot to define editor.
Re: Link to your own pages in link dialog
Thank for your plugin
First excuse my english it's not my native language
Is it possible that you comment your source code because I try to make this king of plugin without success and yours is functional not exactly as I wanted I preferred to inject the contents of pages.php directly into the window and insert the link on click but it's not bad it allows me to implement this feature

Thks
Re: Link to your own pages in link dialog
THANK YOU!
Re: Link to your own pages in link dialog
Thanks for sharing.

I want to add a "Search" before the combobox. When user types a keyword then press "Search", it will post to the "pages.php" then I can filter out the result.

Can you show me how to do this?

Thank you
Re: Link to your own pages in link dialog
maiminh wrote:Thanks for sharing.

I want to add a "Search" before the combobox. When user types a keyword then press "Search", it will post to the "pages.php" then I can filter out the result.

Can you show me how to do this?

Thank you


same question with this one
Re: Link to your own pages in link dialog
I've set this plugin up and everything seems to work fine in Fire Fox but in any version of IE lower than 9 I get the following errors:

I get this one when I load the page that has the ckeditor on it. This error disappears when I remove my custom css reference from the config.js file.
Unable to get value of the property 'name': object is null or undefined
ckeditor.js, line 86 character 1725

And I get this one when I click the link icon within ckeditor.
Unable to get value of the property 'type': object is null or undefined
ckeditor.js, line 56 character 1