-
Notifications
You must be signed in to change notification settings - Fork 244
Toolbars not styled #15
Comments
you should use style https://unpkg.com/medium-draft/dist/medium-draft.css |
If you are using And if you are using the |
I just imported 'medium-draft/lib/index.css' and it worked. Also, I've noticed this is mentioned in usage section of the readme. My bad. Thanks guys! (: |
Actually I added that section after your issue popped up. |
Oh, that makes sense. Since we are here, I was thinking about opening another issue, but not sure if I should.. The demo has drag and drop for images working perfectly, but I can't replicate this behavior. Am I missing something, again? |
If you study the code in So, there are features like -
These features are not part of the core |
Just a last question.. Is there any reason this extra features are not default enabled in medium-draft already? I mean, it would be nice to have a exposed prop like dropImages={true}. Is it possible? I've been using React for a couple months, but I'm really, really noob with DraftJS, sorry about that. But if it's possible, I can try and implement this feature and send you a PR maybe.. |
In the demo, when you drop an image, its added in place using There will always be logic specific to developer to deal with persisting the file someplace. You will have to upload it to your CDN, return the image's URL and then use that as the Its not really hard handling files in |
Hey there!
I just found the project, and the demo is awesome. Really. Congrats! (:
I've almost successfully implemented it, but the editor and side toolbar renders like this:
It applies the inline style and blocks if I press the buttons, but shouldn't it just show up when text selecting?
I've tried looking for a style that might be breaking it, but couldn't find anything.
Any clues what might be happening here?
Thanks!
The text was updated successfully, but these errors were encountered: