From db85dcc04b7c5cb7eccd23c1375eacacc68bbe92 Mon Sep 17 00:00:00 2001 From: MathuraMG Date: Thu, 25 Aug 2016 12:32:06 -0400 Subject: [PATCH] add word line --- client/modules/IDE/components/Editor.js | 3 ++- client/modules/IDE/components/EditorAccessibility.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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} +

);