mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
docs: update content
This commit is contained in:
parent
c8a7735d05
commit
7eb45868ea
@ -50,9 +50,13 @@ const CustomLink = Link.extend({
|
||||
})
|
||||
```
|
||||
|
||||
The order in which extensions are loaded influences a few things.
|
||||
The order in which extensions are loaded influences two things:
|
||||
|
||||
For example the output. The [`Link`](/api/marks/link) mark has a higher priority, which means it’ll be rendered as `<a href="…"><strong>Example</strong></a>` instead of `<strong><a href="…">Example</></strong>`.
|
||||
1. #### Plugin order
|
||||
Plugins of extensions with a higher priority will run first.
|
||||
|
||||
2. #### Schema order
|
||||
The [`Link`](/api/marks/link) mark for example has a higher priority, which means it’ll be rendered as `<a href="…"><strong>Example</strong></a>` instead of `<strong><a href="…">Example</></strong>`.
|
||||
|
||||
### Settings
|
||||
All settings can be configured through the extension anyway, but if you want to change the default settings, for example to provide a library on top of tiptap for other developers, you can do it like that:
|
||||
|
@ -319,6 +319,22 @@ code {
|
||||
}
|
||||
}
|
||||
|
||||
> ol,
|
||||
> ul {
|
||||
li {
|
||||
> h1,
|
||||
> h2,
|
||||
> h3,
|
||||
> h4,
|
||||
> h5,
|
||||
> h6 {
|
||||
a {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .table-wrapper {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
Loading…
Reference in New Issue
Block a user