3 Replies Latest reply on May 16, 2008 1:11 PM by d2burke

    Rich Text Editor

    d2burke Level 1
      The Rich Text Editor in Flex builder is really cool, but I cannot, for the life of me, find a way to save notes taken inside the RTE to my computer. I would like to be able to save as a .doc file to retain the formatting, but even a .txt would be great for now.

      I spoke to someone who suggested passing the string to a .php file and then allowing the user to download it. Any ideas?

      -Daniel
        • 1. Re: Rich Text Editor
          ntsiii Level 3
          A Flex app, running in the Flash Player in a browser, is forbidden by security constraints from accessing any client assets, like the local file system. Period.

          If you can run your Flex app under AIR instead, then you CAN acess the local file system.

          Tracy
          • 2. Re: Rich Text Editor
            slaingod Level 1
            As you mentioned, you would need to pass the data back to your web server, and have it send the data back to you as a file attachment when you clicked your 'Save (Download)' button. That said, you may also need to massage the html to be a little more standard, especially if you have used bullets and things like that. I don't use php or I would give you an example of the server side save to file/db/memory, then use apache send_file to return the results, which would pop the Save as dialog.
            • 3. Re: Rich Text Editor
              d2burke Level 1
              yeah, I suppose I can simply limit the options to things such as Underline and Bold. I haven't played with AIR much...or Flex, really as a matter of fact. I'm quite a newbie. It seems that the Flex/AIR software is the best way to accomplish what I want to accomplish. Thanks for the input