Like other part of library :)
I write this part for a html text editor user select a part of text and click on a button and everything fixed.
and we can use this in browser extension maybe in address bar to change layout for urls or other inputs:)
by use of this method persian.js can be more useful :)