There are third party services that would enable me to do this in my forum, by the way. This one, for example: https://gisttransserver.in/Help/help.pdf
The above one or any other such services out there require me to include scripts in the places where the transliteration needs to be invoked.
Unfortunately, the way NodeBB is made makes it very hard to identify where the text editor is triggered from and to figure out how to place the script as required by the third party services.
So, we're essentially lost.