GetSimple Support Forum
File Chooser in Rich Text Editor - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8)
+--- Thread: File Chooser in Rich Text Editor (/showthread.php?tid=701)



File Chooser in Rich Text Editor - SamWM - 2010-05-14

When you click the button to add a link to a page/email address etc there is no option to choose a file you have uploaded. The only way seems to be to go to 'Files', copy the link location and paste it in the editor. Time consuming and not that simple to do (as some users don't even use right click and it is counter-intuitive).

How about having the ability to link to a file you have already uploaded? i.e. Add an option 'Uploaded File', which when selected lists the files you have uploaded.

Which file needs to be edited to change the link dialog box? Could use AJAX to get the list of files if it is not a PHP file.

--Sam


File Chooser in Rich Text Editor - Zegnåt - 2010-05-14

You could search for documentation on a function like that from CKEditor. I have to say I disable the editor by default so I’ve never really looked into it.

As far as I know, all CKEditor information can be found in /admin/template/js/ckeditor/, though some important information (like what toolbar to show) is taken care of in /admin/edit.php at the time the JavaScript is being called.


File Chooser in Rich Text Editor - SamWM - 2010-05-14

Unfortunately the CKEditor website is blocked where I work so I can't access the site, or see the source code of the 'link' plugin to see how it works (as it is minified in the version shipping with GetSimple).