Skip to content

Commit

Permalink
set textmate as a default schema
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed May 12, 2020
1 parent 626c42e commit 7021025
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Added `utcOffset` prop to `EuiSuperDatePicker` ([#3436](https://github.com/elastic/eui/pull/3436))
- Added `partition` key to `EuiChartThemeType` for Partition chart support ([#3387](https://github.com/elastic/eui/pull/3387))
- Updated `EuiImage`'s `caption` prop type from `string` to `ReactNode` ([#3387](https://github.com/elastic/eui/pull/3387))
- Fixed `EuiCodeEditor` console error when using the editor without import the default theme ([#3454](https://github.com/elastic/eui/pull/3454))

**Bug Fixes**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ exports[`EuiCodeEditor is rendered 1`] = `
</p>
</div>
<div
class=" ace_editor ace-github testClass1 testClass2"
class=" ace_editor ace-tm testClass1 testClass2"
id="htmlId"
style="width: 500px; height: 500px;"
>
Expand Down Expand Up @@ -203,7 +203,7 @@ exports[`EuiCodeEditor props aria attributes allows setting aria-describedby on
</p>
</div>
<div
class=" ace_editor ace-github"
class=" ace_editor ace-tm"
id="htmlId"
style="width: 500px; height: 500px;"
>
Expand Down Expand Up @@ -319,7 +319,7 @@ exports[`EuiCodeEditor props aria attributes allows setting aria-labelledby on t
</p>
</div>
<div
class=" ace_editor ace-github"
class=" ace_editor ace-tm"
id="htmlId"
style="width: 500px; height: 500px;"
>
Expand Down Expand Up @@ -435,7 +435,7 @@ exports[`EuiCodeEditor props isReadOnly renders alternate hint text 1`] = `
</p>
</div>
<div
class=" ace_editor ace-github"
class=" ace_editor ace-tm"
id="htmlId"
style="width: 500px; height: 500px;"
>
Expand Down
4 changes: 1 addition & 3 deletions src/components/code_editor/code_editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ import { keysOf } from '../common';
import { htmlIdGenerator, keyCodes } from '../../services';
import { EuiI18n } from '../i18n';

import 'brace/theme/github';

const DEFAULT_MODE = 'text';
const DEFAULT_THEME = 'github';
const DEFAULT_THEME = 'textmate';

function setOrRemoveAttribute(
element: HTMLTextAreaElement,
Expand Down

0 comments on commit 7021025

Please sign in to comment.