Skip to content

Commit 00244f8

Browse files
author
Zaydek Michels-Gualtieri
committed
Better comments
1 parent e136c7d commit 00244f8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Editor/model/Editor/InlineElement.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import { immerable } from "immer"
22

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.
3+
// Describes an inline element; an inline element is a
4+
// representation of zero-to-many nested inline elements,
5+
// such as plaintext or <strong><em>.
66
class InlineElement {
77
[immerable] = true
88

99
// Zero-to-many types.
1010
types = []
11+
1112
// Zero-to-many props.
1213
props = {}
14+
1315
// Character data.
1416
value = ""
1517

0 commit comments

Comments
 (0)