11import React from 'react' ;
22import PropTypes from 'prop-types' ;
3- < << << << HEAD
43import bindAll from 'lodash-es/bindAll' ;
54import constant from 'lodash-es/constant' ;
65import get from 'lodash-es/get' ;
@@ -9,14 +8,6 @@ import noop from 'lodash-es/noop';
98
109import { createAceEditor , createAceSessionWithoutWorker } from '../util/ace' ;
1110import { EditorLocation } from '../records' ;
12- import { cssSelectorAtCursor } from '../util/cssSelectorAtCursor' ;
13- = === ===
14- import ACE from 'brace' ;
15- import bindAll from 'lodash/bindAll' ;
16- import get from 'lodash/get' ;
17- import throttle from 'lodash/throttle' ;
18- import noop from 'lodash/noop' ;
19- > >>> >>> 621 d5f6 ... Add saga , add ref to iframe element
2011
2112import 'brace/ext/searchbox' ;
2213import 'brace/mode/html' ;
@@ -123,25 +114,6 @@ class Editor extends React.Component {
123114 this . _startNewSession ( this . props . source ) ;
124115 this . _resizeEditor ( ) ;
125116 this . _editor . on ( 'focus' , this . _resizeEditor ) ;
126- < << << << HEAD
127- << << << < HEAD
128- << << << < HEAD
129- = = === ==
130- this . _editor . on ( 'blur' , ( ) => {
131- this . props . onEditorBlurred ( ) ;
132- } ) ;
133- this . _editor . on ( 'focus' , ( ) => {
134- this . props . onEditorFocused ( this . props . language ) ;
135- } ) ;
136- = === ===
137- >>> >>> > ec49c81 . . . Handle fixed potion , handle body and html , handle resize , handle editor refocus to same line
138- this . _editor . setOptions ( {
139- fontFamily : 'Inconsolata' ,
140- fontSize : '14px' ,
141- } ) ;
142- > >>> >>> 23 eb7f2 ... Updates to element highlighter
143- === = ===
144- >>> > >>> e90fafb . . . update window resize , update element highlighter , write unit test
145117 } else {
146118 this . _editor . destroy ( ) ;
147119 }
@@ -183,15 +155,6 @@ class Editor extends React.Component {
183155 this . _editor . moveCursorTo ( 0 , 0 ) ;
184156 this . _resizeEditor ( ) ;
185157 }
186-
187- render ( ) {
188- return (
189- < div
190- className = "editors__editor"
191- ref = { this . _setupEditor }
192- />
193- ) ;
194- }
195158}
196159
197160Editor . propTypes = {
0 commit comments