sonyan / react-wysiwyg-editor Goto Github PK
View Code? Open in Web Editor NEWA bootstrap-style react component for wysiwyg editor
License: MIT License
A bootstrap-style react component for wysiwyg editor
License: MIT License
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). #
Using React 15.2.1 I get this error during mounting component. Maybe this link can help http://stackoverflow.com/questions/29320363/cannot-read-property-reactautobindmap-of-undefined#29430028 .
Thanks
Using React 15.0 I get this error from the emitChange function. It should be using React.findDOMNode(this.refs.editor) instead.
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.
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.
Hello, Unfortunately, https://developer.mozilla.org/fr/docs/Web/API/Document/execCommand advises to not use execommand anymore.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.