GithubHelp home page GithubHelp logo

alastairtaft / draft-js-editor Goto Github PK

View Code? Open in Web Editor NEW
150.0 150.0 18.0 1.03 MB

A rich text editor built using draft js

Home Page: http://alastairtaft.github.io/draft-js-editor/

License: Other

JavaScript 100.00%

draft-js-editor's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

draft-js-editor's Issues

npm start fails

Seems to hang for me at the line

src/modifiers/removeMediaBlock.js -> lib/modifiers/removeMediaBlock.js

No error messages or anything I'm obviously doing wrong.

Improvement suggestion: Allow styling for PopoverControl and SideControl independently

Hi, I think this editor provides a great starting point for an inline content editor. I'm working on integrating this in an app which has a dark background and therefore I set iconColor to a light color. The issue is that the background color for the PopoverControl is a light color also and therefore the icons do not show up well in it.

It would be great if I could pass something such as a popoverStyle prop to the editor which would allow me to pass custom styles for it. ex. popoverStyle={{backgroundColor: '#000', color: '#fff'}}

Thanks

Image upload

Hi,
while uploading image same as you are doing, I am getting the file as undefined
handleFileInput(e){
// This just converts e.target.files form a FileList to an Array
var files = Array.prototype.slice.call(e.target.files, 0)
files.forEach(this.insertFile)
};

Example of side bar icons?

Hello -

Can you provide an example of how to customize the side bar icons? I'd like to be able to add more than just the "Big T" header one and the "Small T" header 2.

Missing Libs and error on upload image

I tried your example but at first i get error on missing packages draft-js,react,react-dom.
Please add it to the package.json

After install packages i get next error on upload image "Cannot read property 'wrapper' of undefined"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.