jpuri / react-draft-wysiwyg

A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg
MIT License
6.42k stars 1.16k forks source link

style cannot display #309

Open Y-MY opened 7 years ago

Y-MY commented 7 years ago

## First,show my code: import React, { Component } from 'react'; import { Editor } from 'react-draft-wysiwyg'; import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css"; import uploadImageCallBack from "./uploadImageCallBack"; import EditorStyle from '../style/MessageCenter.css'; class ReactEditor extends Component{ render(){ return (

    )
}

} export default ReactEditor;

## Then, the rich text editor style can not be displayed properly, where I write a problem

jpuri commented 7 years ago

@Y-MY , it hard for me to make out the error looking at code above. Can you plz refer to example here: https://github.com/jpuri/react-draft-wysiwyg/blob/master/docs/src/components/Home/index.js

thatsmeamal commented 6 years ago

@jpuri I am in need of adding an html template into the wysiwyg editor. The editor now handles only some of the css styles. Hence, the editor gets broken if the template contains styles such as border, margin etc. How can I incorporate support for more styles to handle this issue