mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-19 13:47:51 +08:00
490 B
490 B
resetAttributes
resetAttributes
resets some of the nodes attributes back to it's default attributes.
Parameters
typeOrName: string | Node
The node that should be resetted. Can be a string or a Node.
attributes: string | string[]
A string or an array of strings that defines which attributes should be reset.
Usage
// reset the style and class attributes on the currently selected paragraph nodes
editor.commands.resetAttributes('paragraph', ['style', 'class'])