From b3e8eec21a630986a04efd35accd19ab152e47c1 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 12 Jan 2024 17:44:43 -0800 Subject: [PATCH] Removed the chart section that's using elastic charts (#370) (#1202) (cherry picked from commit 58d94e4501cc49fe41ddc73b41d7e856fae54ffd) Signed-off-by: AbhishekReddy1127 Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: Sean Neumann <1413295+seanneumann@users.noreply.github.com> --- .../markdown_plugin_example.js | 41 ------------------- 1 file changed, 41 deletions(-) diff --git a/src-docs/src/views/markdown_editor/markdown_plugin_example.js b/src-docs/src/views/markdown_editor/markdown_plugin_example.js index 1d3c18ac46..7b3ffb4daf 100644 --- a/src-docs/src/views/markdown_editor/markdown_plugin_example.js +++ b/src-docs/src/views/markdown_editor/markdown_plugin_example.js @@ -11,12 +11,7 @@ import React, { Fragment } from 'react'; -import { renderToHtml } from '../../services'; - -import { GuideSectionTypes } from '../../components'; - import { - OuiMarkdownEditor, OuiText, OuiTitle, OuiSpacer, @@ -29,10 +24,6 @@ import { import { Link } from 'react-router-dom'; -import MarkdownEditorWithPlugins from './markdown_editor_with_plugins'; -const markdownEditorWithPluginsSource = require('!!raw-loader!./markdown_editor_with_plugins'); -const markdownEditorWithPluginsHtml = renderToHtml(MarkdownEditorWithPlugins); - const pluginSnippet = ` ), }, - { - source: [ - { - type: GuideSectionTypes.JS, - code: markdownEditorWithPluginsSource, - }, - { - type: GuideSectionTypes.HTML, - code: markdownEditorWithPluginsHtml, - }, - ], - title: 'Putting it all together: a simple chart plugin', - text: ( - -

- The below example takes the concepts from above to construct a - simple chart embed that is initiated from a new button in the editor - toolbar. -

-

- Note that the OuiMarkdownEditor and{' '} - OuiMarkdownFormat examples utilize the same prop - list. The editor manages additional controls through the{' '} - uiPlugins prop. -

-
- ), - props: { - OuiMarkdownEditor, - }, - demo: , - }, ], };