how to read a file and then display it in to editor

Hi friends,

I have created a file button which will searches for file in the computer
and when ever we have selected a file(.doc or .pdf) file and then press ok
i need to load the content of the data in the file and then i will able to post
the data in to the dhtmlx Editor

please provide me a examples or related information related to this

Thanks and regards


Editor works using innerHTML i.e. only html can be inserted correctly.
To use doc or pdf formats you need to parse them on server.
Editor does not provide such functionality.