getText, setText multi-editor compatibility

This modification allows getText and setText function to work when we are using more than 1 editor in the same page.
Merge pull request #6 from socdream/patch-2

getText, setText multi-editor compatibility