Skip to content

Commit

Permalink
Better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaydek Michels-Gualtieri committed Jul 9, 2020
1 parent e136c7d commit 00244f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Editor/model/Editor/InlineElement.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { immerable } from "immer"

// Describes an inline element, such as plaintext or rich
// text. An inline element is considered discerete when
// 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>.
class InlineElement {
[immerable] = true

// Zero-to-many types.
types = []

// Zero-to-many props.
props = {}

// Character data.
value = ""

Expand Down

0 comments on commit 00244f8

Please sign in to comment.