Opened 8 years ago

Closed 8 years ago

#13475 closed defect (wontfix)

Should not allow copy/paste local images into RTE on Mac OSX/Safari 5

Reported by: hengly Owned by:
Priority: high Milestone: tbd
Component: Editor Version: 1.7.0b1
Keywords: Cc:
Blocked By: Blocking:

Description

  1. Use Mac OSX/Safari 5.
  2. Make a drawing in some image editing tool (i.e. Photoshop, Paintbrush).
  3. Select the image and copy it.
  4. Paste image into rte body.

Expected: Nothing should happen. The image should not be represented in the RTE, because if you send it as an email there is no way for anyone to view it. Actual: The image is pasted into the message body, and if sent it as email, no one else can view the image.

Note: This only works for Safari on Mac. I tried Chrome and FF on Mac, and IE and FF on Win7 and the bug could not be produced.

Change History (3)

comment:1 Changed 8 years ago by Katie Vance

Correct me if I'm misunderstanding the problem here. But the editor is not an email widget and therefore it should not matter if your image can be sent via email. The plugin ought to place an image into the editor and look/act the same across browsers. It sounds to me like that is what is happening here. If you then use the editor to build an email application, then your app ought to handle these specific situations as they are specific only to your app.

comment:2 Changed 8 years ago by bill

I'm assuming the email reference is a red herring. The issue occurs whenever sending editor contents to a server, and happens not only upon pasting an image but also when using the ImgLinkDialog plugin. That's what dojox/editor/plugins/LocalImagePlugin was designed for.

Maybe there's some way to disallow cut/paste of an image, or to intercept the paste and call LocalImagePlugin.

comment:3 Changed 8 years ago by Jared Jurkiewicz

Resolution: wontfix
Status: newclosed

There is no way to intercept native paste events and strip out content like images from being pasted in.

You could use the safepaste plugin and define it to strip <img> tags as a technique for removing them when pasting, though. (http://docs.dojocampus.org/dojox/editor/plugins/SafePaste)

Note: See TracTickets for help on using tickets.