Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 1.x] [OUI Docs] Removed the chart section that's using elastic charts #1202

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions src-docs/src/views/markdown_editor/markdown_plugin_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@

import React, { Fragment } from 'react';

import { renderToHtml } from '../../services';

import { GuideSectionTypes } from '../../components';

import {
OuiMarkdownEditor,
OuiText,
OuiTitle,
OuiSpacer,
Expand All @@ -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 = `<OuiMarkdownEditor
uiPlugin={myPluginUI}
parsingPluginList={myPluginParsingList}
Expand Down Expand Up @@ -361,37 +352,5 @@ processingList[1][1].components.emojiPlugin = EmojiMarkdownRenderer;`}</OuiCodeB
</>
),
},
{
source: [
{
type: GuideSectionTypes.JS,
code: markdownEditorWithPluginsSource,
},
{
type: GuideSectionTypes.HTML,
code: markdownEditorWithPluginsHtml,
},
],
title: 'Putting it all together: a simple chart plugin',
text: (
<Fragment>
<p>
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.
</p>
<p>
Note that the <strong>OuiMarkdownEditor</strong> and{' '}
<strong>OuiMarkdownFormat</strong> examples utilize the same prop
list. The editor manages additional controls through the{' '}
<OuiCode>uiPlugins</OuiCode> prop.
</p>
</Fragment>
),
props: {
OuiMarkdownEditor,
},
demo: <MarkdownEditorWithPlugins />,
},
],
};
Loading