Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ var QuillComponent = React.createClass({
// because it's shared between components.
config.modules = JSON.parse(JSON.stringify(config.modules));
config.modules.toolbar = {
container: this.refs.toolbar.refs.toolbarNode
container: ReactDOM.findDOMNode(this.refs.toolbar)
};
}
return config;
Expand All @@ -187,7 +187,7 @@ var QuillComponent = React.createClass({
},

getEditorElement: function() {
return this.refs.editor//.getDOMNode();
return ReactDOM.findDOMNode(this.refs.editor);
},

getEditorContents: function() {
Expand Down
1 change: 0 additions & 1 deletion src/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ var QuillToolbar = React.createClass({
var children = this.props.items.map(this.renderItem);
var html = children.map(ReactDOMServer.renderToStaticMarkup).join('');
return React.DOM.div({
ref: 'toolbarNode',
className: this.getClassName(),
dangerouslySetInnerHTML: { __html:html }
});
Expand Down