diff --git a/packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx b/packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx index 8af4ada5c97..9751407ac26 100644 --- a/packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx +++ b/packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx @@ -526,18 +526,20 @@ class CodeEditor extends React.Component { headingLevel="h4" /> {emptyStateBody} - - - - - - - - + {!isReadOnly && ( + + + + + + + + + )} ) : ( @@ -546,13 +548,15 @@ class CodeEditor extends React.Component { icon={} headingLevel="h4" /> - - - - - + {!isReadOnly && ( + + + + + + )} )); diff --git a/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorBasic.tsx b/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorBasic.tsx index da741c2e25d..8dd7f5a9730 100644 --- a/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorBasic.tsx +++ b/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorBasic.tsx @@ -23,8 +23,6 @@ export const CodeEditorBasic: React.FunctionComponent = () => { }; const onEditorDidMount = (editor, monaco) => { - // eslint-disable-next-line no-console - console.log(editor.getValue()); editor.layout(); editor.focus(); monaco.editor.getModels()[0].updateOptions({ tabSize: 5 }); diff --git a/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorShortcutMainHeader.tsx b/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorShortcutMainHeader.tsx index 99cba3581f8..d2dd1f5b466 100644 --- a/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorShortcutMainHeader.tsx +++ b/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorShortcutMainHeader.tsx @@ -4,8 +4,6 @@ import { Grid, GridItem, Chip } from '@patternfly/react-core'; export const CodeEditorShortcutMainHeader: React.FunctionComponent = () => { const onEditorDidMount = (editor, monaco) => { - // eslint-disable-next-line no-console - console.log(editor.getValue()); editor.layout(); editor.focus(); monaco.editor.getModels()[0].updateOptions({ tabSize: 5 }); diff --git a/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorSizeToFit.tsx b/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorSizeToFit.tsx index 6b61cc10666..330ff275219 100644 --- a/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorSizeToFit.tsx +++ b/packages/react-code-editor/src/components/CodeEditor/examples/CodeEditorSizeToFit.tsx @@ -3,8 +3,6 @@ import { CodeEditor, Language } from '@patternfly/react-code-editor'; export const CodeEditorSizeToFit: React.FunctionComponent = () => { const onEditorDidMount = (editor, monaco) => { - // eslint-disable-next-line no-console - console.log(editor.getValue()); editor.layout(); editor.focus(); monaco.editor.getModels()[0].updateOptions({ tabSize: 5 });