sstur / draft-js-utils

DraftJS: import/export ContentState to and from HTML/Markdown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Render custom inline + block React components

Nases opened this issue · comments

I've been trying to use my custom components on export.

const Bold = ({ children }) => {
  return (
    <Text style={styles.bold}>
      {children}
    </Text>
  )
}
inlineStyles: {
  BOLD: {element: <Bold />}
}

Any way to get this working?