Fix a couple of more errors due to API changes

This commit is contained in:
Luke Barnard 2017-08-03 15:20:44 +01:00
parent 901cbf495d
commit a27eefd893
2 changed files with 3 additions and 2 deletions

View file

@ -51,7 +51,8 @@ export const contentStateToHTML = (contentState: ContentState) => {
};
export function htmlToContentState(html: string): ContentState {
return ContentState.createFromBlockArray(convertFromHTML(html));
const blockArray = convertFromHTML(html).contentBlocks;
return ContentState.createFromBlockArray(blockArray);
}
function unicodeToEmojiUri(str) {