1 Reply Latest reply on Dec 5, 2012 10:48 AM by roymeo_

    Clipboard VS Highlighted Text

    steeletech

      I can detect Clipboard Data (when I copy text to the clipboard), and display that text.

      Here's how I do it:

       

       

      <script>

      if(air.Clipboard.generalClipboard.hasFormat(air.ClipboardFormats.TEXT_FORMAT)){

          var text = air.Clipboard.generalClipboard.getData(air.ClipboardFormats.TEXT_FORMAT);

      }else{

          var text = "nothing in clipboard";

      }

      </script>

       

       

      And it absolutely works fine.  As soon as I Copy something to the clipboard I get that Text data.

       

      I'd like to get the Text Data of when I highlight Text with my mouse, before deciding to copy it or not. 

      Is there a way to do that?