We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e136c7d commit b2fb0b9Copy full SHA for b2fb0b9
src/Editor/model/Editor/InlineElement.js
@@ -1,15 +1,21 @@
1
import { immerable } from "immer"
2
3
-// Describes an inline element, such as plaintext or rich
4
-// text. An inline element is considered discerete when
5
-// types and props are not equal.
+// Describes an inline element; an inline element is a
+// representation of zero-to-many nested inline elements,
+// such as plaintext or <strong><em>.
6
+//
7
+// Note that there is only one correct representation of an
8
+// inline element because types are sortable.
9
10
class InlineElement {
11
[immerable] = true
12
13
// Zero-to-many types.
14
types = []
15
+
16
// Zero-to-many props.
17
props = {}
18
19
// Character data.
20
value = ""
21
0 commit comments