diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx
index 20f084c28..95bb68447 100644
--- a/client/homebrew/editor/editor.jsx
+++ b/client/homebrew/editor/editor.jsx
@@ -1,3 +1,4 @@
+/*eslint max-lines: ["warn", {"max": 300, "skipBlankLines": true, "skipComments": true}]*/
require('./editor.less');
const React = require('react');
const createClass = require('create-react-class');
@@ -198,6 +199,21 @@ const Editor = createClass({
}
},
+ renderEditorToolbar : function(){
+ return
+
+
+
+
+
+
+
;
+ },
+
render : function(){
this.highlightCustomMarkdown();
return (
@@ -211,6 +227,7 @@ const Editor = createClass({
renderer={this.props.renderer} />
{this.renderEditor()}
+ {!this.isMeta() && this.renderEditorToolbar()}
);
}
diff --git a/client/homebrew/editor/editor.less b/client/homebrew/editor/editor.less
index 0097ddbf6..8633e4eb3 100644
--- a/client/homebrew/editor/editor.less
+++ b/client/homebrew/editor/editor.less
@@ -50,4 +50,16 @@
.tooltipLeft("Jump to brew page");
}
+ .editorToolbar{
+ position: absolute;
+ top: 5px;
+ left: 50%;
+ color: black;
+ font-size: 13px;
+ z-index: 9;
+ span {
+ padding: 2px 5px;
+ }
+ }
+
}
diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx
index 9707bde56..5d00cc04c 100644
--- a/shared/naturalcrit/codeEditor/codeEditor.jsx
+++ b/shared/naturalcrit/codeEditor/codeEditor.jsx
@@ -112,6 +112,12 @@ const CodeEditor = createClass({
updateSize : function(){
this.codeMirror.refresh();
},
+ redo : function(){
+ this.codeMirror.redo();
+ },
+ undo : function(){
+ this.codeMirror.undo();
+ },
//----------------------//
render : function(){