Coder Social home page Coder Social logo

react-wysiwyg-editor's People

Contributors

pmyers88 avatar sonyan avatar

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

Watchers

 avatar  avatar  avatar

react-wysiwyg-editor's Issues

Only a ReactOwner can have refs

I'm trying this in my custom component:

import EditableDiv from 'react-wysiwyg-editor';
<EditableDiv className="editorStyle" content={'initial content'}/>

Given this:

addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's render method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner). #

State is not updated when props change

The shouldComponentUpdate method returns true when nextProps.content !== this.state.html. This triggers a re-render. However, this.state.html is not updated to reflect the new nextProps.content value, so the re-render does not do anything.

Remove bootstrap.js as a dependency

The dropdown buttons in the toolbar depend on bootstrap.js. This is undesirable since bootstrap depends on jQuery, and jQuery goes against the React philosophy. I have created a branch that uses react-bootstrap so that there are no bootstrap.js and jQuery dependencies. Would you consider merging a PR? It is a large refactor, basically the whole render method has been replaced.

Example/Demo

HI @sonyan! Thanks for the library! It would be great to see a demo/example to help make a choice between this and other libraries. Is it possible for you to add a demo soon?

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.