Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File Chooser in Rich Text Editor
#1
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
-- Sam
Reply
#2
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.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
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).
-- Sam
Reply




Users browsing this thread: 1 Guest(s)