Add html lang prop to CodeEditor Component inside the SourceCodeModal (#2043)
This commit is contained in:
@@ -41,6 +41,7 @@ exports[`SourceCodeModal renders as expected with default behavior 1`] = `
|
||||
>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
innerRef="moCKrEf"
|
||||
lang="html"
|
||||
value="mOckHtMl"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import {
|
||||
@@ -41,6 +40,7 @@ const SourceCodeModal = ({
|
||||
<CodeEditor
|
||||
innerRef={ref}
|
||||
value={value}
|
||||
lang="html" // hardcoded value to do lookup on CODEMIRROR_LANGUAGES
|
||||
/>
|
||||
</div>
|
||||
</BaseModal>
|
||||
|
||||
Reference in New Issue
Block a user