mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 01:22:44 +00:00
Shift CSS link to CodeEditor render
This commit is contained in:
@@ -268,14 +268,9 @@ const Editor = createClass({
|
||||
this.forceUpdate();
|
||||
},
|
||||
|
||||
renderEditorCSSLink : function(){
|
||||
return <link href={`../homebrew/cm-themes/${this.state.editorTheme}.css`} rel='stylesheet' />;
|
||||
},
|
||||
|
||||
renderEditor : function(){
|
||||
if(this.isText()){
|
||||
return <>
|
||||
{this.renderEditorCSSLink()}
|
||||
<CodeEditor key='codeEditor'
|
||||
ref='codeEditor'
|
||||
language='gfm'
|
||||
@@ -288,7 +283,6 @@ const Editor = createClass({
|
||||
}
|
||||
if(this.isStyle()){
|
||||
return <>
|
||||
{this.renderEditorCSSLink()}
|
||||
<CodeEditor key='codeEditor'
|
||||
ref='codeEditor'
|
||||
language='css'
|
||||
|
||||
Reference in New Issue
Block a user