Issue with copy and paste.

Last post 10-26-2012, 7:06 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  10-26-2012, 6:24 AM 75063

    Issue with copy and paste.

    Using cute editor as an email body editor.

     

    Emails are likely to have MessageGears script links in them.  

     

    PROBLEM: If a user does a copy-and-paste action on the "Normal" tab from a previous email to  a new one, then the MessageGears script link is encoded.  This is fairly serious for unsubscribe links which become broken.

     

    As an example, this link: "${Gears.unsubscribe()}" is converted into this link :"http://mydomain.com/$%7BGears.unsubscribe()%7D".  I am guessing this only happens within HREFs!?

    Using copy-and-paste in the HTML tab is absolutely fine.

     

    Is there any way I can turn this behaviour off or can someone suggest a workaround.  I do save the email into a database so I have the option to use REGEX to fix the link.  Seems a but dirty though and might take some time to compute the correct REGEX. 

     

    For those reading this in the future, be aware that the URL which is inserted can change, for example, if you edit a Template, the absolute path which is added by cute editor also contains the folder path to the template editor ASPX. Any REGEX will become a bit more tricky.

     

    Help! 

  •  10-26-2012, 7:06 AM 75065 in reply to 75063

    Re: Issue with copy and paste.

    Hi,

     

    Please use the html filter to cover it back to { and }. Just need to add it to the bottom of the page.

     

    1. <script type="text/javascript">        
    2. function CuteEditor_FilterHTML(editor,code)     
    3. {     
    4.     code=code.split("").join("}");  
    5.     return code.split("").join("{");  
    6. }     
    7. function CuteEditor_FilterCode(editor,code)     
    8. {     
    9.     code=code.split("").join("}");  
    10.     return code.split("").join("{");  
    11. }     
    12. </script>    

    Regards,

     

    Ken 

View as RSS news feed in XML