Merge branch 'main' of https://github.com/ueberdosis/tiptap.git
This commit is contained in:
@@ -25,6 +25,7 @@ There are also some extensions with more capabilities. We call them [nodes](/api
|
||||
| [History](/api/extensions/history) | Included | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-history/) |
|
||||
| [Placeholder](/api/extensions/placeholder) | – | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-placeholder/) |
|
||||
| [TextAlign](/api/extensions/text-align) | – | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-text-align/) |
|
||||
| [UniqueId](/api/extensions/unique-id) | – | Requires a tiptap pro subscription |
|
||||
| [Typography](/api/extensions/typography) | – | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-typography/) |
|
||||
|
||||
You don’t have to use it, but we prepared a `@tiptap/starter-kit` which includes the most common extensions. Read more about [`StarterKit`](/guide/configuration#default-extensions).
|
||||
|
||||
@@ -14,29 +14,29 @@ yarn add @tiptap/extension-typography
|
||||
```
|
||||
|
||||
## Rules
|
||||
| Name | Description |
|
||||
| ----------------------- | ---------------------------------------------------------------- |
|
||||
| emDash | Converts double dashes `--` to an emdash `—`. |
|
||||
| ellipsis | Converts three dots `...` to an ellipsis character `…` |
|
||||
| openDoubleQuote | `“`Smart” opening double quotes. |
|
||||
| closeDoubleQuote | “Smart`”` closing double quotes. |
|
||||
| openSingleQuote | `‘`Smart’ opening single quotes. |
|
||||
| closeSingleQuote | ‘Smart`’` closing single quotes. |
|
||||
| leftArrow | Converts <code><‐</code> to an arrow `←` . |
|
||||
| rightArrow | Converts <code>‐></code> to an arrow `→`. |
|
||||
| copyright | Converts `(c)` to a copyright sign `©`. |
|
||||
| registeredTrademark | Converts `(r)` to registered trademark sign `®`. |
|
||||
| trademark | Converts `(tm)` to registered trademark sign `™`. |
|
||||
| oneHalf | Converts `1/2` to one half `½`. |
|
||||
| oneQuarter | Converts `1/4` to one quarter `¼`. |
|
||||
| threeQuarters | Converts `3/4` to three quarters `¾`. |
|
||||
| plusMinus | Converts `+/-` to plus/minus sign `±`. |
|
||||
| notEqual | Converts <code style="font-variant-ligatures: none;">!=</code> to a not equal sign `≠`. |
|
||||
| laquo | Converts `<<` to left-pointing double angle quotation mark `«`. |
|
||||
| raquo | Converts `>>` to right-pointing double angle quotation mark `»`. |
|
||||
| multiplication | Converts `2 * 3` or `2x3` to a multiplcation sign `2×3`. |
|
||||
| superscriptTwo | Converts `^2` a superscript two `²`. |
|
||||
| superscriptThree | Converts `^3` a superscript three `³`. |
|
||||
| Name | Description |
|
||||
| ------------------- | --------------------------------------------------------------------------------------- |
|
||||
| emDash | Converts double dashes `--` to an emdash `—`. |
|
||||
| ellipsis | Converts three dots `...` to an ellipsis character `…` |
|
||||
| openDoubleQuote | `“`Smart” opening double quotes. |
|
||||
| closeDoubleQuote | “Smart`”` closing double quotes. |
|
||||
| openSingleQuote | `‘`Smart’ opening single quotes. |
|
||||
| closeSingleQuote | ‘Smart`’` closing single quotes. |
|
||||
| leftArrow | Converts <code><‐</code> to an arrow `←` . |
|
||||
| rightArrow | Converts <code>‐></code> to an arrow `→`. |
|
||||
| copyright | Converts `(c)` to a copyright sign `©`. |
|
||||
| registeredTrademark | Converts `(r)` to registered trademark sign `®`. |
|
||||
| trademark | Converts `(tm)` to registered trademark sign `™`. |
|
||||
| oneHalf | Converts `1/2` to one half `½`. |
|
||||
| oneQuarter | Converts `1/4` to one quarter `¼`. |
|
||||
| threeQuarters | Converts `3/4` to three quarters `¾`. |
|
||||
| plusMinus | Converts `+/-` to plus/minus sign `±`. |
|
||||
| notEqual | Converts <code style="font-variant-ligatures: none;">!=</code> to a not equal sign `≠`. |
|
||||
| laquo | Converts `<<` to left-pointing double angle quotation mark `«`. |
|
||||
| raquo | Converts `>>` to right-pointing double angle quotation mark `»`. |
|
||||
| multiplication | Converts `2 * 3` or `2x3` to a multiplcation sign `2×3`. |
|
||||
| superscriptTwo | Converts `^2` a superscript two `²`. |
|
||||
| superscriptThree | Converts `^3` a superscript three `³`. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* `Backspace` reverts the applied input rule
|
||||
|
||||
10
docs/src/docPages/api/extensions/unique-id.md
Normal file
10
docs/src/docPages/api/extensions/unique-id.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# UniqueId
|
||||
:::pro Pro extension
|
||||
The UniqueId extension will be the first tiptap pro extension we’ll release on top of all the free extensions. Access to the extension and the documentation will require a tiptap pro subscription.
|
||||
:::
|
||||
|
||||
The `UniqueId` extension adds unique IDs to all nodes. The extension keeps track of your nodes, even if you split them, merge them, undo/redo changes, crop content, paste content … It just works.
|
||||
|
||||
Also, you can configure which node types get an unique ID, and which not, and you can customize how those IDs are generated.
|
||||
|
||||
We’re preparing everything to release that extension, give us a few more days. If you can’t wait to purchase a tiptap pro license and get access to the extensions, send us an email to [humans@tiptap.dev](mailto:humans@tiptap.dev).
|
||||
@@ -359,6 +359,9 @@
|
||||
link: /api/extensions/text-align
|
||||
- title: Typography
|
||||
link: /api/extensions/typography
|
||||
- title: UniqueId
|
||||
link: /api/extensions/unique-id
|
||||
type: pro
|
||||
- title: Utilities
|
||||
link: /api/utilities
|
||||
redirect: /api/utilities/html
|
||||
|
||||
Reference in New Issue
Block a user