Closed DaRabus closed 2 years ago
https://codesandbox.io/embed/markdown-editor-for-react-izdd6?fontsize=14&hidenavigation=1&theme=dark
You can give me an example using https://codesandbox.io to reproduce your error.
@DaRabus
Can't really reproduce it with Sandbox, i will try further with my project.
But is there some docs how i can style proper the single components, like the toolbar and the textfield by itself, cause the css doesnt apply on the parts if i put it on the "Editor"
@jaywcjlove
I don't understand your question. @DaRabus
You have to reproduce your problem before I can help you.
@DaRabus are you now able to use custom css?
@roshan521 I actually found this alternative which works with the styling.
@DaRabus looks sick bro thanks :+1:
@DaRabus @roshan521 https://github.com/uiwjs/react-markdown-editor
Hi @jaywcjlove!
I'm trying to use this library on my remix react app. I tried importing the updated CSS file, i.e.import "@uiw/react-md-editor/dist/mdeditor.css";
but my CSS still does not load well.
I'm just trying to setup the basic demo:
import React from "react";
import MDEditor from "@uiw/react-md-editor";
// No import is required in the WebPack.
import "@uiw/react-md-editor/dist/mdeditor.css";
const mkdStr = `
# Markdown Editor
---
**Hello world!!!**
[![](https://avatars.githubusercontent.com/u/1680273?s=80&v=4)](https://avatars.githubusercontent.com/u/1680273?v=4)
\`\`\`javascript
import React from "react";
import ReactDOM from "react-dom";
import MEDitor from '@uiw/react-md-editor';
\`\`\`
`;
export default function LiveEditor() {
const [value, setValue] = React.useState(mkdStr);
return (
<div className="container">
<h3>Auto</h3>
<MDEditor height={200} value={value} onChange={(val) => {if (val) setValue(val)}} />
<h3>Light</h3>
<div data-color-mode="light">
<MDEditor height={200} value={value} onChange={(val) => {if (val) setValue(val)}} />
</div>
<h3>Light</h3>
<div data-color-mode="dark">
<MDEditor height={200} value={value} onChange={(val) => {if (val) setValue(val)}} />
</div>
</div>
);
}
Do you have an idea of perhaps how I can fix this?
Hey Guys,
I tried a lot of things out and moved the component out of every thinkable style and even tried using the Chrome/Firefox CSS tools, but i just can't get it to a proper fit in any way. the Toolbar is horizontal somehow and also the text field is not changeable in the width...
My other components are MUI based styled so basically nothing which should interfere with
I removed now any styling for showing it.
What do i do wrong..