This is a migrated thread and some comments may be shown as answers.

Copy Paste Editor

3 Answers 88 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ch Perez
Top achievements
Rank 1
Ch Perez asked on 09 May 2010, 07:00 PM
Hello,

I try to stick to block the images, when i use the paste.

when you make a copy and paste an article I would keep the text and formatting any external links, but not paste images.
how do I do?


Ch.



3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 10 May 2010, 10:42 PM
Images are not able to be copy and pasted from Word (or anything on a users local file system), all you will see are the broken images that you are describing. The reason behind this is actually due to security. All of the browsers that are supported by the Telerik RadControls actually do not allow javascript to access the local user's file system (and therefore the clipboard) due to the fact that malicious javascript could be run without the users consent. This could be very dangerous as it could then search for important files that might contain passwords and other information.

Also, while other Editors might be able to use this functionality they all take use of software such as ActiveX or Java which requires an install on the user's machine. Telerik's RadEditor runs completely in-browser without the need of any extra installs!

What you can do is: for each one of those images you simply use the Image Manager that is found within the RadEditor's default list of tools. This will allow you to upload the necessary images to your RadEditor content.
0
Ch Perez
Top achievements
Rank 1
answered on 11 May 2010, 10:36 AM
I just do not want to copy the image, I would like to simply copy, paste, without the img tag.
images of which I speak are not locally but on a url online.
for exemple http://toto.com/myimage.jpg 

so I wanted to paste the img tags removed, so that it does not copy the text and other layout but without images.
0
Schlurk
Top achievements
Rank 2
answered on 11 May 2010, 02:21 PM
Ah, I see what you're trying to achieve. Perhaps pasting the content as plain text will work in this case? I tested it in this online demo and it did indeed paste without any image tags. There is a thread that you can find here, with a very recent sample project posted at the end, that shows how to set up the plain text paste as the default paste when a ctrl+v occurs.
Tags
Editor
Asked by
Ch Perez
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Ch Perez
Top achievements
Rank 1
Share this question
or