PasteText, PasteCleanHTML doesn't work with Safari

Last post 06-10-2008, 4:22 PM by thecoose. 13 replies.
Sort Posts: Previous Next
  •  03-08-2007, 11:02 AM 27263

    PasteText, PasteCleanHTML doesn't work with Safari

    I have a site set up where a few selected users are able to post in blogs, using CuteEditor for .NET to compose their posts. Some of them have articles published elsewhere on the internet and want to copy & paste their articles into their blogs. That's OK, but we don't want the fonts in the blogs to differ from the CSS set for the rest of the site. I tried setting the EditorOnPaste property to PasteCleanHTML. That worked great in Windows, but in MAC/Safari, the font tags are not removed and override our CSS, meaning that the resulting post is in a different font from the rest of the site. I tried setting EditorOnPaste to PasteText and PastePureText, but it still doesn't work when the user is running MAC/Safari.
     
    I was able to reproduce this behavior using your example page at:
     
    when I open it in Safari, set it to PasteText or PasteCleanHTML, and attempt to paste colored, italicized font in an unusual font face from a different website, the Editor does not remove the font tags. In Windows/IE7, the font tags are removed.
     
    Is this a bug or am I doing something wrong? Please tell me how to fix the situation.
     
    Thanks.
    Filed under:
  •  03-09-2007, 11:25 AM 27306 in reply to 27263

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    Apparently this issue is going to be ignored? There are many other things that don't work properly or at all in Safari. See this post for a couple more:
     
    I'm going to expect a refund of my money if the Editor control does not work properly with Safari. The home page of this site clearly states that the control is compatible with Safari.
  •  03-09-2007, 1:20 PM 27308 in reply to 27263

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    ywhitaker:
    I have a site set up where a few selected users are able to post in blogs, using CuteEditor for .NET to compose their posts. Some of them have articles published elsewhere on the internet and want to copy & paste their articles into their blogs. That's OK, but we don't want the fonts in the blogs to differ from the CSS set for the rest of the site. I tried setting the EditorOnPaste property to PasteCleanHTML. That worked great in Windows, but in MAC/Safari, the font tags are not removed and override our CSS, meaning that the resulting post is in a different font from the rest of the site. I tried setting EditorOnPaste to PasteText and PastePureText, but it still doesn't work when the user is running MAC/Safari.
     
    I was able to reproduce this behavior using your example page at:
     
    when I open it in Safari, set it to PasteText or PasteCleanHTML, and attempt to paste colored, italicized font in an unusual font face from a different website, the Editor does not remove the font tags. In Windows/IE7, the font tags are removed.
     
    Is this a bug or am I doing something wrong? Please tell me how to fix the situation.
     
    Thanks.
     
     
    What kind of HTML code did you paste? If yous set the onpaste to PasteText, all HTML formatting should be stripped.
     
     
    Details:
     
    Member Name Description
    Default When you paste text into the editor it is not processed.
    Disabled Paste function is disabed.
    PasteCleanHTML When you pasting the html code into the editor, the empty tags, redundant nested tags and messy or unreadable HTML code are automatically cleaned up.
    PasteWord When you pasting the content from Word into the editor, the non-required code that usually comes with pasting from Word are automatically cleaned up.
    PasteText When you paste text into the editor, all HTML formatting is stripped except for paragraph marks. This option is ideal for content management systems where you want to import text from other word processors and strip off any strange formatting commands they included
    PastePureText When you paste text into the editor, all HTML formatting is stripped. This option is ideal for content management systems where you want absolute control over the formatting
    ConfirmWord When you pasting the content from Word into the editor, will prompt users with a popup prompt to clean the non-required code.

     

     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-09-2007, 3:17 PM 27310 in reply to 27308

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    I went to the demo page you referenced above, using MAC/Safari, and set it to PasteText. I then copied and pasted this exact HTML:
     
    "Climb if you will, but remember that courage and strength are naught without prudence, and that a momentary negligence may destroy the happiness of a lifetime. Do nothing in haste; look well to each step; and from the beginning think what may be the end
     
    from another site.
     
    When using MAC/Safari, the font tags are not stripped. When using Windows/IE7, the font tags are stripped. Please try this in Safari and see if you experience the same behavior.
  •  03-09-2007, 3:58 PM 27311 in reply to 27310

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    ywhitaker,
     
    It's strange.
     
    If you open safari_pastetext.aspx file, you can find out we use a textarea accept the pasted content.  All the HTML formatting will be stripped right away.
     
    Are you using version 5.3?
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-09-2007, 4:32 PM 27312 in reply to 27311

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    I'm not quite sure how to tell which version I'm using.  I downloaded it just a couple of months ago, so I assume it's pretty current. When was 5.3 released?
     
    Is the formatting stripped when you yourself paste into the demo page while running Safari?
  •  03-09-2007, 5:52 PM 27318 in reply to 27312

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    >>I'm not quite sure how to tell which version I'm using. 
     
    Please put your mouse cursor over CuteEditor.dll and read the decription.
     
    >>Is the formatting stripped when you yourself paste into the demo page while running Safari?
     
    Yes. It works for me.
     
    We are going to release Version 6.0 in this weekend. If it's not a known bug, it's better confirm it and fix it before the release.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-09-2007, 6:29 PM 27326 in reply to 27318

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    yes, it's vs 5.3.
     
    Which version of Safari are you running?
     
    This is happening not only to me but also one of my clients who is a MAC user and trying to copy & paste his internet articles as mentioned above. We're on two different computers. He says he's running Safari 2.04.
  •  03-10-2007, 11:18 AM 27343 in reply to 27326

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    ywhitaker,
     
    We are using Safari 1.3 and 2.0.
     
    We will continue investigate this issue and make sure this funtion works before we release the V6.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-13-2007, 9:14 PM 28292 in reply to 27326

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    ywhitaker:
    yes, it's vs 5.3.
     
    Which version of Safari are you running?
     
    This is happening not only to me but also one of my clients who is a MAC user and trying to copy & paste his internet articles as mentioned above. We're on two different computers. He says he's running Safari 2.04.
     
    ywhitaker,
     
    This issue is resolved in the version 6.0. Please upgrade to this new version.
     
    It's a free upgrade.
     
    Demo:

    http://richtextbox.com/cs/


    Download:

     

     


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-10-2008, 12:21 AM 38987 in reply to 28292

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    I am using:
    CuteEditor version 6.0
    Safari 3.1 for PC or MAC
    Firefox 2.0.0.13 for PC

    I'm still having this issue.  IE7 is the only browswer that removes HTML when pasted correctly.  I used the following link to produce the screenshot below:

    http://cutesoft.net/example/editor-onpaste.aspx

  •  04-20-2008, 11:37 PM 39530 in reply to 38987

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    This also does not work with Firefox.
     
    I am using Firefox v 2.0.0.14 (currently the latest) and if Popup blockers are disabled it displays the popup to allow clean pasting, if not then the editor allows the html to be pasted. This is happening on the Cutesoft demo page 
     
    http://cutesoft.net/example/editor-onpaste.aspx
     
    At the very least, if a popup is required to handle cleaning the HTML and popups are being blocked than the paste shouldn't be allowed.
     
    I've seen lots of posts around this problem with plenty of replies that it is fixed, but it is not. Is there any estimate when this will be fixed?
     
     
    Thanks 

  •  05-07-2008, 9:17 PM 40189 in reply to 28292

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    This issue is NOT resolved. It doesn't even work on your demo site. Can somebody from CuteSoft at least reply? Will this ever work?
  •  06-10-2008, 4:22 PM 41303 in reply to 40189

    Re: PasteText, PasteCleanHTML doesn't work with Safari

    Has this issue been resolved yet?
View as RSS news feed in XML