From 544b1e32389d28df4a40013ea6886f1f9d61e37d Mon Sep 17 00:00:00 2001
From: Clemens <cle1000.cb@gmail.com>
Date: Mon, 11 Jul 2016 19:49:58 +0200
Subject: modify flow content

---
 web/src/js/components/common/MonacoEditor.jsx | 34 +++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 web/src/js/components/common/MonacoEditor.jsx

(limited to 'web/src/js/components/common/MonacoEditor.jsx')

diff --git a/web/src/js/components/common/MonacoEditor.jsx b/web/src/js/components/common/MonacoEditor.jsx
new file mode 100644
index 00000000..a0e8d58c
--- /dev/null
+++ b/web/src/js/components/common/MonacoEditor.jsx
@@ -0,0 +1,34 @@
+//not working
+import React, { Component, PropTypes } from 'react'
+
+export default class MonacoEditor extends Component {
+
+    constructor(props) {
+        super(props)
+    }
+
+    onLoad(){
+        window.MonacoEnvironment = {
+			getWorkerUrl: function(workerId, label) {
+				return 'worker-loader-proxy.js';
+			}
+		};
+		require.config({
+			paths: {
+				vs: '../release/min/vs'
+			}
+		});
+
+    }
+
+
+    render() {
+        return (
+            <div id="container"
+                 ref={ref => this.editor = ref}
+                 style="width:800px;height:600px;border:1px solid grey"
+                 onLoad={this.onLoad()}>
+            </div>
+        )
+    }
+}
-- 
cgit v1.2.3

