Fixed "text" to use selected text or page title.
Merge pull request #9 from setomits/fix-selected-or-title

Fixed "text" to use selected text or page title.
fix bug %text% not set if nothing is selected