uiwjs / react-md-editor

A simple markdown editor with preview, implemented with React.js and TypeScript.
https://uiwjs.github.io/react-md-editor
MIT License
2.13k stars 154 forks source link

how to change the built-in style of html? #167

Open ibearye opened 3 years ago

ibearye commented 3 years ago

The github-like style can not match the style theme of my project perfectly, how to change the built-in style?

jaywcjlove commented 3 years ago

@ibearye Add css style to override the default style.

ibearye commented 3 years ago

@ibearye Add css style to override the default style.

It is not possible for me to do that. The content style of my project is beautified by plugin, style is set automatically depending on the className of the content wrapper. The style always was covered by built-in style of react-md-editor. What I should do is that remove the aboriginal className.

jaywcjlove commented 3 years ago

@ibearye use prefixCls props

https://github.com/uiwjs/react-md-editor/blob/60fb1569d70efb4e8e42722281fe31a27c805078/src/Editor.tsx#L93

https://github.com/uiwjs/react-md-editor/blob/60fb1569d70efb4e8e42722281fe31a27c805078/src/Editor.tsx#L214

https://github.com/uiwjs/react-md-editor/blob/60fb1569d70efb4e8e42722281fe31a27c805078/src/Editor.tsx#L145-L150