Get selected text?
-
Is it possible to use this to get the selected text and act on it? I’m thinking I would like to create a button so I can select a word and wrap it in some html.
Like if I selected HELLO and clicked my custom button, it would replace the selected text with <span class=”whatever”>HELLO</span> .
Is that possible? If not does anybody know of a plugin that would do that?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get selected text?’ is closed to new replies.