Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ibearye opened this issue May 11, 2021 · 3 comments
Open

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

ibearye opened this issue May 11, 2021 · 3 comments

Comments

@ibearye
Copy link

ibearye commented May 11, 2021

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

@jaywcjlove
Copy link
Member

@ibearye Add css style to override the default style.

@ibearye
Copy link
Author

ibearye commented May 12, 2021

@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
Copy link
Member

@ibearye use prefixCls props

prefixCls = 'w-md-editor',

className={`${prefixCls}-content`}

const cls = [
className,
prefixCls,
state.preview ? `${prefixCls}-show-${state.preview}` : null,
state.fullscreen ? `${prefixCls}-fullscreen` : null,
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants