Open invious opened 4 years ago
same issue here
Initially, i ran to this prob too.
I realized i should call stateFromHTML
from inside EditorState.createWithContent()
EditorState.createWithContent(stateFromHTML("<div><h1>I'm an H1 Tag</h1></div>"))
@raymond-ong thanks it works