wp.selectParagraph
| Syntax |
wp.selectParagraph ()
|
| Params |
None required.
|
| Action |
Causes the paragraph in which the current selection is found to become the selection.
|
| Returns |
True
|
| Examples |
edit (@examples.testText2) » true
Now select some text in the second paragraph of the document. You can just place the cursor anywhere in that paragraph or select a character or a few wordsÑwhatever you like. Type and execute:
Notice that the entire second paragraph is highlighted; it has become the selection. |
| Notes |
If you use wp.selectParagraph with the cursor on an empty line, the selection remains unchanged but the verb still returns true. If the selection crosses paragraph boundaries, the last paragraph involved in the selection is selected.
|
| See Also |
wp.setSelect
|