Re: PasteText, PasteCleanHTML doesn't work with Safari

  •  03-09-2007, 1:20 PM

    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

View Complete Thread