Re: How to disable copy and paste image functionality in cute editor <img src="data:image\png..."

  •  01-10-2012, 4:06 PM

    Re: How to disable copy and paste image functionality in cute editor <img src="data:image\png..."

    I think this hard to reproduce because you're
    a) either not patched
    b) is related to the viewstate size of the returned request that contains the image inside the cached editor contents (see my other ticket from today)
     
    No matter, because really the point of this ticket is: How do you disable the feature to paste an image from "RIGHT CLICK COPY IMAGE" so that it doesn't add an <img src="data:..."
     
    To Reproduce:
     
    1) Open up MS Paint
    2) Go to the globe icon at the top of this page (immediately to the left of support forums)
    3) right click the image in Firefox, select COPY IMAGE from the menu option
    4) go back to paint
    5) paste the image into paint
    6) go to cuteeditor, paste the image into the cuteeditor in Normal View
    7) go to HTML View, look at the img src= - it should look like: img src="data:image/png;base64,iVBORw..."
     
    I do not want the users to be able to insert image data in this fashion, because it creates unnecessarily massive pages.  The HTML file data should link to a separate file, and never have embedded data in it.  In other words, the specific paste operation should fail, and DO NOTHING.
     
    The issue I'm describing has nothing to do with copying and pasting HTML - it has to do with copying a binary file, and pasting it into the Cute Editor.
     
    I want to turn that binary paste functionality off on the cuteeditor client, but I want to allow users to continue pasting HTML from the buffer.
     
View Complete Thread