update text

This commit is contained in:
Philipp Kühn
2020-04-20 14:07:20 +02:00
parent c505119b33
commit 56a6389441
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
# Schema # Schema
Compared to many other editors, tiptap is based on a [schema](https://prosemirror.net/docs/guide/#schema) that defines how the content is structured. For example this allows you to define the kind of nodes that may occur in the document, and the way they can be nested. Unlike many other editors, tiptap is based on a [schema](https://prosemirror.net/docs/guide/#schema) that defines how your content is structured. This allows you to define the kind of nodes that may occur in the document, its attributes and the way they can be nested.
This schema is *very* strict. You cant use any HTML-element or attribute that is not defined in your schema.
For example if you paste something like `This is <strong>important</strong>` into tiptap and you dont have registed any extension that handles `strong` tags, youll only see `This is important`.

View File

@@ -75,7 +75,7 @@ a {
code { code {
font-family: 'JetBrainsMono', monospace; font-family: 'JetBrainsMono', monospace;
background-color: rgba($colorBlack, 0.05); background-color: rgba($colorBlack, 0.05);
padding: 0.1rem 0.5rem; padding: 0.1rem 0.3rem;
border-radius: 0.25rem; border-radius: 0.25rem;
color: rgba($colorBlack, 0.7); color: rgba($colorBlack, 0.7);
font-size: 0.9em; font-size: 0.9em;