toggle

public function toggle(name:String, vars:Object, node:Node):void
Toggles the specified format on/off.

Params

Name Type Description
name String Name of format to apply/remove.
vars Object Optional list of variables to replace within format before applying/removing it.
node Node Optional node to apply the format to or remove from. Defaults to current selection.