outline / rich-markdown-editor

The open source React and Prosemirror based markdown editor that powers Outline. Want to try it out? Create an account:
https://www.getoutline.com
BSD 3-Clause "New" or "Revised" License
2.87k stars 588 forks source link

unnecessary override to use tailwindcss-typography #504

Closed HT-Moh closed 3 years ago

HT-Moh commented 3 years ago

When using tailwindcss-typography I would like to disable the theme completely, so that the editor pick up the styling from tailwindcss, otherwise you end up duplicating the styling by overriding the theme of the editor. but this should not be necessary. The following code is working, meaning the styling from tailwindcss typography is applied, however typescript complains No overload matches this call.

<Editor
      readOnly={readonly}
      theme={{}} // No overload matches this call 
      headingsOffset={0}
      defaultValue={content || 'No content'}
      onChange={(v) => {
        if (onChange) onChange(v());
      }} />

will be nice ti have a way to disable the default theme completely.