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 00244f8Copy full SHA for 00244f8
src/Editor/model/Editor/InlineElement.js
@@ -1,15 +1,17 @@
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
class InlineElement {
7
[immerable] = true
8
9
// Zero-to-many types.
10
types = []
11
+
12
// Zero-to-many props.
13
props = {}
14
15
// Character data.
16
value = ""
17
0 commit comments