You need to provide users with some input method to enter Hindi in that text editor like a virtual keyboard.
Or if user has something like Google IME for Hindi (It is a desktop application) then user can type Hindi in the text editor.
So you can not just depend on Google IME for Hindi, hence you need to come up with some virtual keyboard. You can also search for some ready made virtual keyboards over internet.