diff --git a/client/modules/IDE/components/Editor.js b/client/modules/IDE/components/Editor.js index 34658b6f..8b2bd924 100644 --- a/client/modules/IDE/components/Editor.js +++ b/client/modules/IDE/components/Editor.js @@ -54,7 +54,8 @@ class Editor extends React.Component { this.props.updateFileContent(this.props.file.name, this._cm.getValue()); })); this._cm.on('keyup', () => { - this.props.updateLineNumber(parseInt((this._cm.getCursor().line) + 1, 10)); + const temp = `line ${parseInt((this._cm.getCursor().line) + 1, 10)}`; + document.getElementById('current-line').innerHTML = temp; }); // this._cm.on('change', () => { // eslint-disable-line // // this.props.updateFileContent('sketch.js', this._cm.getValue()); diff --git a/client/modules/IDE/components/EditorAccessibility.js b/client/modules/IDE/components/EditorAccessibility.js index b2e0cbe3..e98b4605 100644 --- a/client/modules/IDE/components/EditorAccessibility.js +++ b/client/modules/IDE/components/EditorAccessibility.js @@ -27,7 +27,7 @@ class EditorAccessibility extends React.Component { {messages}
Current line - {this.props.lineNumber} +
);