You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/editor/prosemirror-schema/overview.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,24 @@ position: 0
10
10
11
11
# ProseMirror Schema Overview
12
12
13
-
The Telerik UI for Blazor Editor component is based on the <ahref="https://prosemirror.net/"target="_blank">ProseMirror library</a>. ProseMirror provides a set of tools and concepts for building rich textual editors, using user interface inspired by the What-You-See-Is-What-You-Get (WYSIWYG).
13
+
The Telerik UI for Blazor Editor component is based on the [ProseMirror library](https://prosemirror.net/). ProseMirror provides a set of tools and concepts for building rich textual editors, using user interface inspired by the What-You-See-Is-What-You-Get (WYSIWYG).
14
14
15
15
## Schema Concept
16
16
17
-
ProseMirror defines its own data structure, the <ahref="https://prosemirror.net/docs/ref/#model.Node"target="_blank">`Node`</a>, to represent content documents. The <ahref="https://prosemirror.net/docs/guide/#doc"target="_blank">ProseMirror document</a> is a tree-like structure comprised of nodes. A document is an instance of `Node` with children that are also instances of `Node`.
17
+
ProseMirror defines its own data structure, the [`Node`](https://prosemirror.net/docs/ref/#model.Node), to represent content documents. The [ProseMirror document](https://prosemirror.net/docs/guide/#doc) is a tree-like structure comprised of nodes. A document is an instance of `Node` with children that are also instances of `Node`.
18
18
19
-
Each ProseMirror `document` conforms to a specific <ahref="https://prosemirror.net/docs/guide/#schema"target="_blank">schema</a>. Document schemas allow you to edit documents with a custom structure without writing your own editor from scratch.
19
+
Each ProseMirror `document` conforms to a specific [schema](https://prosemirror.net/docs/guide/#schema). Document schemas allow you to edit documents with a custom structure without writing your own editor from scratch.
20
20
21
-
The schema describes all nodes that may occur in the document, the way they are nested, and any marks applied to them. A mark is a piece of information that can be attached to a node. For example, emphasized text, text in code block or a link. It has a type and optionally a set of attributes that provide further information (such as the target of the link).
21
+
The Prosemirror schema describes:
22
22
23
-
For more details, refer to the <ahref="https://prosemirror.net/docs/guide/#schema"target="_blank">ProseMirror schema guide</a>.
23
+
* All HTML elements and attributes that may occur in the document.
24
+
* What tag nesting is allowed.
25
+
* What is the order or the HTML attributes.
26
+
* What marks can be applied to a HTML node. A mark is a piece of information that can be attached to a node. For example, emphasized text, text in code block or a link. It has a type and optionally a set of attributes that provide further information (such as the target of the link).
27
+
28
+
As a result, the Editor may automatically modify its initial `Value` on first user interaction.
29
+
30
+
For more details, refer to the [ProseMirror schema guide](https://prosemirror.net/docs/guide/#schema).
0 commit comments