Open a file on the server (doc/txt/pdf/html) and put contents into a box on the left has side.
Open a database and show the fields in a box on the right had side
select text from the text box - paste into the database field and also highlight the text.
rich text editor facilities should be available to allow changes to the text.