update the commands page
This commit is contained in:
@@ -17,20 +17,29 @@ editor.chain().focus().bold().run()
|
|||||||
| .setContent() | Replace the whole document with new content. |
|
| .setContent() | Replace the whole document with new content. |
|
||||||
|
|
||||||
### Nodes & Marks
|
### Nodes & Marks
|
||||||
| Command | Description |
|
| Command | Description |
|
||||||
| ------------------- | ------------------------------------------ |
|
| ------------------- | ------------------------------------------------------ |
|
||||||
| .removeMark() | Remove a mark in the current selection. |
|
| .removeMark() | Remove a mark in the current selection. |
|
||||||
| .removeMarks() | Remove all marks in the current selection. |
|
| .removeMarks() | Remove all marks in the current selection. |
|
||||||
| .selectParentNode() | Select the parent node. |
|
| .selectParentNode() | Select the parent node. |
|
||||||
| .toggleMark() | Toggle a mark on and off. |
|
| .toggleMark() | Toggle a mark on and off. |
|
||||||
| .toggleBlockType() | Toggle a node with another node. |
|
| .toggleBlockType() | Toggle a node with another node. |
|
||||||
| .setBlockType() | Replace a given range with a node. |
|
| .setBlockType() | Replace a given range with a node. |
|
||||||
| .updateMark() | Update a mark with new attributes. |
|
| .updateMark() | Update a mark with new attributes. |
|
||||||
|
|
||||||
|
### Lists
|
||||||
|
| Command | Description |
|
||||||
|
| ------------------- | ------------------------------------------------------ |
|
||||||
|
| .liftListItem() | Lift the list item into a wrapping list. |
|
||||||
|
| .sinkListItem() | Sink the list item down into an inner list. |
|
||||||
|
| .splitListItem() | Splits a textblock of a list item into two list items. |
|
||||||
|
| .toggleList() | Toggle between different list styles. |
|
||||||
|
|
||||||
### Selection
|
### Selection
|
||||||
| Command | Description |
|
| Command | Description |
|
||||||
| ------------------ | --------------------------------------- |
|
| ------------------ | --------------------------------------- |
|
||||||
|
| .blur() | Blurs the editor. |
|
||||||
| .deleteSelection() | Delete the selection, if there is one. |
|
| .deleteSelection() | Delete the selection, if there is one. |
|
||||||
| .focus() | Focus the editor at the given position. |
|
| .focus() | Focus the editor at the given position. |
|
||||||
|
| .scrollIntoView() | Scroll the selection into view. |
|
||||||
| .selectAll() | Select the whole document. |
|
| .selectAll() | Select the whole document. |
|
||||||
| .scrollIntoView() | … |
|
|
||||||
|
|||||||
Reference in New Issue
Block a user