mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-11 15:59:01 +08:00
Merge pull request #1 from mmailaender/docs-tailwind-intellisense-configuration
Added Tailwind Intellisense configuration to docs
This commit is contained in:
commit
1793c728c6
@ -79,6 +79,14 @@ The editor works fine with Tailwind CSS, too. Find an example that’s styled wi
|
||||
|
||||
https://embed.tiptap.dev/preview/Experiments/Tailwind
|
||||
|
||||
#### Intellisense
|
||||
If you're using [TailwindCSS Intellisense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) add the following snippet to your `.vscode/setting.json` to add intellisense support inside TipTap objects:
|
||||
```json
|
||||
"tailwindCSS.experimental.classRegex": [
|
||||
"class:\\s*?[\"'`]([^\"'`]*).*?,"
|
||||
]
|
||||
```
|
||||
|
||||
## Option 3: Customize the HTML
|
||||
Or you can customize the markup for extensions. The following example will make a custom bold extension that doesn’t render a `<strong>` tag, but a `<b>` tag:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user