
This integration allows you to keep all the code in ActionScript. So you don't need any additional JavaScript code to put in your page.
UPDATE
Here you have the source code of Xinha Editor integration with Flex application. By downloading both archives, you would find out how it works. When I have enough time, I will try to rewrite the post.