Skip to content

Commit

Permalink
Fixed EuiCodeEditor Read Only and Custom Mode code sandbox links (#3816)
Browse files Browse the repository at this point in the history
  • Loading branch information
chandlerprall authored Jul 29, 2020
1 parent 8f08d64 commit 7497b07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src-docs/src/views/code_editor/custom_mode.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import 'brace/mode/text';

import { EuiCodeEditor } from '../../../../src/components';
import 'brace/mode/text';
import 'brace/theme/github';

const TextMode = window.ace.acequire('ace/mode/text').Mode;
class MyCustomAceMode extends TextMode {
Expand Down
4 changes: 2 additions & 2 deletions src-docs/src/views/code_editor/read_only.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';

import { EuiCodeEditor } from '../../../../src/components';

import 'brace/mode/less';
import 'brace/theme/github';

import { EuiCodeEditor } from '../../../../src/components';

export default () => {
const value = '<p>This code is read only</p>';

Expand Down

0 comments on commit 7497b07

Please sign in to comment.