Skip to content

Commit 8e0b829

Browse files
author
Zaydek Michels-Gualtieri
committed
Better comments
1 parent 494b877 commit 8e0b829

2 files changed

Lines changed: 29 additions & 30 deletions

File tree

src/Editor/Editor.js

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -126,35 +126,35 @@ const Editor = () => {
126126
type: Paragraph,
127127
uuid: uuidv4(),
128128
spans: [
129-
// {
130-
// content: "Hey, ",
131-
// formats: [formatsEnum.strong],
132-
// },
133-
// {
134-
// content: "Russ",
135-
// formats: [formatsEnum.strong, formatsEnum.emphasis],
136-
// },
137-
// {
138-
// content: "!",
139-
// formats: [formatsEnum.strong],
140-
// },
141-
// {
142-
// content: " I’m making some ",
143-
// formats: [formatsEnum.strong],
144-
// },
145-
// {
146-
// content: "progress ",
147-
// formats: [formatsEnum.code],
148-
// },
149-
// " on making a ",
150-
// {
151-
// content: "WYSIWYG",
152-
// formats: [formatsEnum.anchor],
153-
// [formatsEnum.anchor]: {
154-
// href: "https://heroicons.dev",
155-
// },
156-
// },
157-
// " editor.",
129+
{
130+
content: "Hey, ",
131+
formats: [formatsEnum.strong],
132+
},
133+
{
134+
content: "Russ",
135+
formats: [formatsEnum.strong, formatsEnum.emphasis],
136+
},
137+
{
138+
content: "!",
139+
formats: [formatsEnum.strong],
140+
},
141+
{
142+
content: " I’m making some ",
143+
formats: [formatsEnum.strong],
144+
},
145+
{
146+
content: "progress ",
147+
formats: [formatsEnum.code],
148+
},
149+
" on making a ",
150+
{
151+
content: "WYSIWYG",
152+
formats: [formatsEnum.anchor],
153+
[formatsEnum.anchor]: {
154+
href: "https://heroicons.dev",
155+
},
156+
},
157+
" editor.",
158158
],
159159
},
160160
])

src/Editor/useEditor.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ const methods = state => ({
174174
uuidElement.uuid = uuidv4()
175175
cursor.uuid = uuidElement.uuid
176176
}
177-
// TODO: Add span props?
178177
uuidElement.spans = spans
179178
this.select([cursor, cursor])
180179
},

0 commit comments

Comments
 (0)