CuteEditor with PasteBehavior='PastePureText' still allows some markup

Last post 09-10-2009, 4:16 AM by Kenneth. 7 replies.
Sort Posts: Previous Next
  •  08-30-2009, 5:11 AM 55172

    CuteEditor with PasteBehavior='PastePureText' still allows some markup

    Hi!
     
    We are using the CureEditor in PastePureText mode.
    When users paste in some text with html formatting, some html tags are not erased.
     
    Example of html: 
    <p style="margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; line-height: 21.0px; font: 13.0px Arial Unicode MS; color: #0000ff"><span style="letter-spacing: 0.0px">How many times have you woke up and thought, I really don’t have the energy or motivation to get up, how many times have you felt like there is no point on working so hard as when you do, you don’t get the outcome you may deserve? How many times have you stopped and thought, do you really make a difference? How many times have you stopped and thought, are you were you wanted to be? To add to this, why do people seem to find these best times to hurt you?&nbsp; These will be the real moments in your life.</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; line-height: 21.0px; font: 12.0px Helvetica; color: #0000ff; min-height: 14.0px"><span style="letter-spacing: 0.0px"></span><br /> </p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; line-height: 21.0px; font: 13.0px Arial Unicode MS; color: #0000ff"><span style="letter-spacing: 0.0px">The moments where you just feel like you just can’t get up. I will let you in to a secret, the fact you have acknowledge that you feel like that and that you want some change means your already half way up. Acknowledgment means you have identified the problem, which means you have also identified the solution. I recently came across an experience where I felt like I could not get up, I knew what the problem was but the solution at the time was not the right one. I had to get myself up. How did I do this? How can any one do this? Simple really, it’s just a matter of balance. Every bad thing that brings you down, think about a good balance. This can often be the opposite. You may have had your heart broken and feel really down, so what you do is this think about your great qualities, friends are great support for this, think about the reasons and ways in which you can make people happy, dig deep and find that confidence in your self, because once you do this you will see that its all so much better then you realise.</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; line-height: 21.0px; font: 12.0px Helvetica; color: #0000ff; min-height: 14.0px"><span style="letter-spacing: 0.0px"></span><br /> </p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; line-height: 21.0px; font: 13.0px Arial Unicode MS; color: #0000ff"><span style="letter-spacing: 0.0px">As cliche as it may sound each experience you take will make you stronger, each bad experience prepares you more in life. It doesn’t matter your nationality, background, life experience, race, gender or age, there is one thing we can all aim to achieve, something that can only come with time, that is wisdom. So think about your current situation, are you down and lost or up and found? If your lost, you just need the right direction to be found, and if you are found, embrace and remember how you feeling now for the next time something knocks you down as this will be the biggest motivator.</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; text-align: justify; line-height: 21.0px; font: 13.0px Arial Unicode MS; color: #0000ff"><span style="letter-spacing: 0.0px">Perseverance is key, belief is essential and faith in yourself is crucial.</span></p>
     
    I've tried out this html at your demo page http://cutesoft.net/example/editor-onpaste.aspx.
    And it doesn't remove the html tags also.
  •  08-30-2009, 10:19 PM 55179 in reply to 55172

    Re: CuteEditor with PasteBehavior='PastePureText' still allows some markup

    AndriiChuk,
     
    Which version of Cute Editor are you using?
     
    Can you reproduce this issue in the following example?
     
     
    This example is running version 6.4.

    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

  •  09-02-2009, 4:18 AM 55282 in reply to 55179

    Re: CuteEditor with PasteBehavior='PastePureText' still allows some markup

    Adam,
     
    I can easily reproduce this issue at http://cutesoft.net/example/editor-onpaste.aspx.
    I used the html block I provided in my first post in this thread.
     
    Andrii
  •  09-02-2009, 4:34 AM 55284 in reply to 55282

    Re: CuteEditor with PasteBehavior='PastePureText' still allows some markup

    Andrii,
     
    I've tried the code you provided.
     
    It works fine for me.
     
    Can you show me how to reproduce this issue?

    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

  •  09-02-2009, 10:01 AM 55300 in reply to 55284

    Re: CuteEditor with PasteBehavior='PastePureText' still allows some markup

    Adam,
     
    I just open in the FireFox the test page http://cutesoft.net/example/editor-onpaste.aspx.
    Then I select PastePureText and paste in provided html.
    The text becomes blue, what means that html formatting was applied:
     
     
  •  09-02-2009, 11:33 PM 55333 in reply to 55300

    Re: CuteEditor with PasteBehavior='PastePureText' still allows some markup

    Hi AndriiChuk,
     
    We can reproduce this issue. We are investigating this issue and will get back to you as soon as possible.
     
    Regards,
     
    Ken
  •  09-10-2009, 2:58 AM 55513 in reply to 55333

    Re: CuteEditor with PasteBehavior='PastePureText' still allows some markup

    Hi Kenneth,
     
    How are the things going with fixing this issue? ;)
     
    Andrii
  •  09-10-2009, 4:16 AM 55517 in reply to 55513

    Re: CuteEditor with PasteBehavior='PastePureText' still allows some markup

    Hi AndriiChuk,
     
    Editor will have an update in two weeks.
     
    Regards,
     
    ken
View as RSS news feed in XML