sstur / draft-js-utils

DraftJS: import/export ContentState to and from HTML/Markdown
ISC License
883 stars 233 forks source link

Render custom inline + block React components #233

Open Nases opened 3 years ago

Nases commented 3 years ago

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?