Add html lang prop to CodeEditor Component inside the SourceCodeModal (#2043)

This commit is contained in:
Tony Busa
2025-06-02 07:18:38 -06:00
committed by GitHub
parent 0c7cef66ab
commit 17e514f937
2 changed files with 2 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ exports[`SourceCodeModal renders as expected with default behavior 1`] = `
>
<injectIntl(ShimmedIntlComponent)
innerRef="moCKrEf"
lang="html"
value="mOckHtMl"
/>
</div>

View File

@@ -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>