Opened 12 years ago
Closed 12 years ago
#9986 closed New Feature (invalid)
Link URL and Image URL
Reported by: | Al Toman | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
Hello, I'm not a JS coder, otherwise, I'd address this without bugging you guys.
Your editor has a LINK and IMAGE button, both requiring an URL.
The user has to either manually type it in or copy/paste IF they can figure it out (many users are NOT web savvy). Some URL can be very long and typing it in may lead to errors. Frustrating!!!
Therefore, is there a way to copy the URL from clipboard into LINK or IMAGE?
References can be see at: REF#1 http://www.codetoad.com/javascript_get_selected_text.asp
and REF#2 http://www.codelixir.com/zero-clipboard-multi-instance/
The above uses flash via ZeroClipboard.js
I have successfully used it with the CKeditor however it is very unstable; sometimes works; sometimes not. NOT GOOD!
Ideal would be to capture url using REF#1 then URL automatically shows in the URL field in your LINK or IMAGE button.
This script is cross browser friendly. Is there a way to incorporate this into CKeditor?
Kind regards and thanks for the opportunity, Al Toman
Change History (1)
comment:1 Changed 12 years ago by
Keywords: | clipboard copy link removed |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Version: | 3.6.6 (SVN - trunk) |
Hi, It is not really possible to access clipboard data with JavaScript due to security restrictions. Just look at cut/copy/paste operations - there are problems everywhere. In fact only IE ask users if they want to use clipboard data or not.
Seems that such access is only possible with help of Flash. I especially recommend first two articles: http://stackoverflow.com/questions/127040/copy-put-text-on-the-clipboard-with-firefox-safari-and-chrome
http://stackoverflow.com/questions/400212/how-to-copy-to-the-clipboard-in-javascript
http://brooknovak.wordpress.com/2009/07/28/accessing-the-system-clipboard-with-javascript/ http://news.cnet.com/8301-1009_3-10021715-83.html