File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export default class NavigationContainer extends React.Component {
2424 links : routes . map ( route => {
2525 return {
2626 name : route . name ,
27- title : "> " ,
27+ title : " " ,
2828 url : route . path ,
2929 key : route . path ,
3030 onClick : event => {
Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ export default class TextlintEditorContainer extends React.Component {
110110 ref = { c => this . TextlintEditor = c }
111111 className = "TextlintEditorContainer-mainEditor"
112112 value = { textlintEditor . textContent }
113+ defaultValue = { textlintEditor . textContent }
113114 onChange = { this . onChangeTextlintEditor }
114115 onLintError = { this . onLintError }
115116 textlintrcFilePath = { textlintrcEditor . filePath }
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export default class TextlintEditor extends React.Component {
2626 modulesDirectory : React . PropTypes . string ,
2727 textlintrcFilePath : React . PropTypes . string ,
2828 value : React . PropTypes . string ,
29+ defaultValue : React . PropTypes . string ,
2930 onChange : React . PropTypes . func ,
3031 onLintError : React . PropTypes . func
3132 } ;
@@ -111,6 +112,7 @@ export default class TextlintEditor extends React.Component {
111112 < CodeMirror
112113 ref = { c => this . _CodeMirror = c }
113114 value = { this . state . textValue }
115+ defaultValue = { this . props . defaultValue }
114116 onChange = { this . updateValue }
115117 options = { options } />
116118 </ div > ;
@@ -125,6 +127,7 @@ export default class TextlintEditor extends React.Component {
125127 this . setState ( {
126128 textValue : value
127129 } ) ;
130+ this . props . onChange ( value ) ;
128131 }
129132 }
130133
@@ -148,7 +151,6 @@ export default class TextlintEditor extends React.Component {
148151 const validator = createValidator ( { textlintrcFilePath, nodeModulesDirectory} ) ;
149152 let isLinting = false ;
150153 return ( text , callback ) => {
151- console . log ( "Txt" , text ) ;
152154 if ( ! text ) {
153155 callback ( [ ] ) ;
154156 return ;
You can’t perform that action at this time.
0 commit comments