tiptap-extension-auto-joiner
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "tiptap-extension-auto-joiner", | ||
"description": "joins nearby nodes of the same type like list items", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Niclas Gregor", |
@@ -28,1 +28,20 @@ # Tiptap Extension: AutoJoiner | ||
It can be extended to join not only lists, but all types of nodes that are next to each other, such as paragraphs or custom nodes. | ||
## Configuration | ||
Optionally, you can also configure which nodes should be joined if they end up next to each other. | ||
By default, only ordered lists are joined with ordered lists and unordered lists are joined with unordered lists. | ||
```js | ||
import AutoJoiner from 'tiptap-extension-auto-joiner' | ||
new Editor({ | ||
extensions: [ | ||
AutoJoiner.configure({ | ||
elementsToJoin: ["paragraph", "myCustomNode"] | ||
}), | ||
], | ||
}) | ||
``` | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1694880
10
47