wp.clearTabs

Syntax wp.clearTabs ()

Params None required.

Action Removes all custom tab stops from the ruler for the selection in the target document. If the selection is empty, the paragraph in which the selection appears is affected. After tabs are cleared, tab stops still exist at their default positions every 1/2

inch.

Returns True

Examples edit (@examples.testText2)

   » true

Press Command-A to select the entire document. Now drag a tab arrow of any type to the ruler line approximately 1-1/2 inches from the left margin. Confirm that this tab has been set for all of the paragraphs in the document. Now place the cursor in the
second paragraph. Type and execute:
wp.clearTabs ()


   » true

You should now be able to confirm that the special tab stop you created earlier is still in place for all but the second paragraph, which has reverted to its default tab stops.

Discuss