0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 10:52:42 +00:00

So much polish

This commit is contained in:
Scott Tolksdorf
2016-01-04 17:02:55 -05:00
parent b1b69437ea
commit fb8ddfe9fa
16 changed files with 146 additions and 62 deletions

View File

@@ -55,6 +55,11 @@ var Icons = [
icon : 'fa-arrows-v',
snippet : "<div style='margin-top:140px'></div>\n\n",
tooltip : "Vertical Spacing"
},
{
icon : 'fa-image',
snippet : "<img />",
tooltip : "Insert Image"
}
@@ -68,6 +73,10 @@ var Editor = React.createClass({
};
},
componentDidMount: function() {
this.refs.textarea.focus();
},
handleTextChange : function(e){
this.props.onChange(e.target.value);
},