fix (client): added editor refs to all the instances of Editor to enable hotkey focus (#41757)
This commit is contained in:
@ -223,6 +223,7 @@ class MultifileEditor extends Component {
|
|||||||
description={targetEditor === 'indexjsx' ? description : null}
|
description={targetEditor === 'indexjsx' ? description : null}
|
||||||
fileKey='indexjsx'
|
fileKey='indexjsx'
|
||||||
key='indexjsx'
|
key='indexjsx'
|
||||||
|
ref={editorRef}
|
||||||
resizeProps={resizeProps}
|
resizeProps={resizeProps}
|
||||||
theme={editorTheme}
|
theme={editorTheme}
|
||||||
/>
|
/>
|
||||||
@ -258,6 +259,7 @@ class MultifileEditor extends Component {
|
|||||||
description={targetEditor === 'indexcss' ? description : null}
|
description={targetEditor === 'indexcss' ? description : null}
|
||||||
fileKey='indexcss'
|
fileKey='indexcss'
|
||||||
key='indexcss'
|
key='indexcss'
|
||||||
|
ref={editorRef}
|
||||||
resizeProps={resizeProps}
|
resizeProps={resizeProps}
|
||||||
theme={editorTheme}
|
theme={editorTheme}
|
||||||
/>
|
/>
|
||||||
@ -275,6 +277,7 @@ class MultifileEditor extends Component {
|
|||||||
description={targetEditor === 'indexjs' ? description : null}
|
description={targetEditor === 'indexjs' ? description : null}
|
||||||
fileKey='indexjs'
|
fileKey='indexjs'
|
||||||
key='indexjs'
|
key='indexjs'
|
||||||
|
ref={editorRef}
|
||||||
resizeProps={resizeProps}
|
resizeProps={resizeProps}
|
||||||
theme={editorTheme}
|
theme={editorTheme}
|
||||||
/>
|
/>
|
||||||
|
Reference in New Issue
Block a user