0 Replies Latest reply on Aug 10, 2010 4:14 AM by elamukil

    Set clipboard content using html text

    elamukil Level 1


      I have a html text store in a string variable as mentioned below. I want to set this to the clipboard. But when I set this to clipboard I get the same HTML text and not a readable one.









       var str:String 
      = "SALE               22   CASH040 07:26 AM";




      I tried to create a text area and set clipboard content from that but I am getting an error "TypeError: Error #2007: Parameter text must be non-null."


      I tried like


      var textArea:TextArea = new TextArea();
      textArea.htmlText = str;


      Kindly help me in resolving this.


      I want to set the readable text to clipboard and not the html text