Greetings,
I am trying to copy and paste text in the editor box and I keep getting the errors about browser security and having to paste into a second box and it's really annoying
Is there anyway to just allow normal copying and pasting by right clicking the mouse? Something to disable?
Thanks
Kind regards
I am trying to copy and paste text in the editor box and I keep getting the errors about browser security and having to paste into a second box and it's really annoying
Is there anyway to just allow normal copying and pasting by right clicking the mouse? Something to disable?
Thanks
Kind regards
Re: How to copy and paste normally?
Nope. It's a browser security feature. Firefox and Opera do it. IIRC webkit (Safari, chromium) Doesn't.
It's the browser which forbids pasting and not CKEditor. CKEditor just warns you not to try to do it and provides you with an input box to paste into instead. All other WYSIWYG editors which use an IFRAME tag like CKEditor do the same. It's browsers which don't support pasting into an IFRAME tag. Web browsers can be exploited using that very same technique, which is why most browsers forbid it. Without that dialog which pops up, nothing would happen normally.
You can still use the function key combination ctrl + v to paste on Linux and Windows systems. I suspect OSX is Apple key + v.
Thanks,
Zanpakutō
Re: How to copy and paste normally?
This is the only editor I know of that does this and some of my visitors are complaining since they need to copy and paste between different product listings and they have to deal with this error.
Re: How to copy and paste normally?
Why do I have to deal with it when I use CKeditor?
Re: How to copy and paste normally?
because as already explained, CKEditor uses an IFRAME tag as the editing area. It is a browser problem. Not a CKEditor problem.
Thanks,
Zanpakutō
Re: How to copy and paste normally?
Isn't there some way to change this though? Like make it a different tag than an iframe?
For instance, what about the WYSIWYG that I am using for this forum, how do I get CKEditor to work sort of like this instead?
Kind regards
Re: How to copy and paste normally?
Hi Peppy,
using an IFRAME tag as the editing area is a core part of CKEditor's architecture. Without completely re-writing CKEditor to add the option of using a different tag, there is no way to change it. I guess that an IFRAME tag is used because it is easier to apply entire style sheets to one and thus create document independent styles inside the editor. Meaning that syles that are important inside the editor aren't modified by any other style sheets which are loaded into the document. It's very easy to set styles for elements using CSS, however it can sometimes be very difficult to remove or replace them. If you don't know exactly what they are.
I personally wouldn't have used an IFRAME tag but I don't develop CKEditor, so my opinion isn't important in such things.
As far as your request goes, the editor used on this forum is a BBCode markdown editor and not a WYSIWYG editor because what you see is not what you get. For example :
Re: How to copy and paste normally?
Can anybody tell me the difference of pressing CTRL+V and pressing the paste-button in the toolbar? Does the browser really handle this differently? Because I don't get a "paste dialog" by pressing CTRL+V in my browser?
Re: How to copy and paste normally?
If you click on the toolbar of CKEditor, that's an image with some javascript, that javascript tells the browser: "please, paste the contents of the clipboard here", but usually the browser will refuse that request because it can't be sure that you are really wanting to insert there the contents of your clipboard (as it might contain private data), or if the page was some phising attack that showed a "win 10 dollars" button and used your click to request the clipboard data.
Re: How to copy and paste normally?
Thanks for your clarification alfonsomi - didn't think about that