make RTE sending work
This commit is contained in:
parent
4972a234c4
commit
167742d900
3 changed files with 85 additions and 69 deletions
|
@ -61,14 +61,6 @@ export function stateToMarkdown(state) {
|
|||
''); // this is *not* a zero width space, trust me :)
|
||||
}
|
||||
|
||||
export const editorStateToHTML = (editorState: Value) => {
|
||||
return Html.deserialize(editorState);
|
||||
}
|
||||
|
||||
export function htmlToEditorState(html: string): Value {
|
||||
return Html.serialize(html);
|
||||
}
|
||||
|
||||
export function unicodeToEmojiUri(str) {
|
||||
let replaceWith, unicode, alt;
|
||||
if ((!emojione.unicodeAlt) || (emojione.sprites)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue