Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit b6a3005

Browse files
committed
add comment
1 parent e4557b2 commit b6a3005

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modifiers/changeCurrentInlineStyle.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const changeCurrentInlineStyle = (editorState, matchArr, style, character) => {
2121

2222
let newContentState = currentContent;
2323

24+
// if appendChar isn't defined add a space
25+
// if character is a newline - add empty string and later on - split block
2426
let appendChar = character == null ? " " : character;
2527
if (character == "\n") appendChar = "";
2628

0 commit comments

Comments
 (0)