Skip to content

Commit

Permalink
Delete experimental table from playground (#5237)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fetz authored Dec 6, 2023
1 parent 7eb87b4 commit fe08854
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1,922 deletions.
28 changes: 0 additions & 28 deletions packages/lexical-playground/src/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import {CAN_USE_DOM} from 'shared/canUseDOM';
import {createWebsocketProvider} from './collaboration';
import {useSettings} from './context/SettingsContext';
import {useSharedHistoryContext} from './context/SharedHistoryContext';
import TableCellNodes from './nodes/TableCellNodes';
import ActionsPlugin from './plugins/ActionsPlugin';
import AutocompletePlugin from './plugins/AutocompletePlugin';
import AutoEmbedPlugin from './plugins/AutoEmbedPlugin';
Expand Down Expand Up @@ -65,12 +64,10 @@ import TabFocusPlugin from './plugins/TabFocusPlugin';
import TableCellActionMenuPlugin from './plugins/TableActionMenuPlugin';
import TableCellResizer from './plugins/TableCellResizer';
import TableOfContentsPlugin from './plugins/TableOfContentsPlugin';
import {TablePlugin as NewTablePlugin} from './plugins/TablePlugin';
import ToolbarPlugin from './plugins/ToolbarPlugin';
import TreeViewPlugin from './plugins/TreeViewPlugin';
import TwitterPlugin from './plugins/TwitterPlugin';
import YouTubePlugin from './plugins/YouTubePlugin';
import PlaygroundEditorTheme from './themes/PlaygroundEditorTheme';
import ContentEditable from './ui/ContentEditable';
import Placeholder from './ui/Placeholder';

Expand Down Expand Up @@ -114,15 +111,6 @@ export default function Editor(): JSX.Element {
}
};

const cellEditorConfig = {
namespace: 'Playground',
nodes: [...TableCellNodes],
onError: (error: Error) => {
throw error;
},
theme: PlaygroundEditorTheme,
};

useEffect(() => {
const updateViewPortWidth = () => {
const isNextSmallWidthViewport =
Expand Down Expand Up @@ -196,22 +184,6 @@ export default function Editor(): JSX.Element {
hasCellBackgroundColor={tableCellBackgroundColor}
/>
<TableCellResizer />
<NewTablePlugin cellEditorConfig={cellEditorConfig}>
<AutoFocusPlugin />
<RichTextPlugin
contentEditable={
<ContentEditable className="TableNode__contentEditable" />
}
placeholder={null}
ErrorBoundary={LexicalErrorBoundary}
/>
<MentionsPlugin />
<HistoryPlugin />
<ImagesPlugin captionsEnabled={false} />
<LinkPlugin />
<LexicalClickableLinkPlugin />
<FloatingTextFormatToolbarPlugin />
</NewTablePlugin>
<ImagesPlugin />
<InlineImagePlugin />
<LinkPlugin />
Expand Down
2 changes: 0 additions & 2 deletions packages/lexical-playground/src/nodes/PlaygroundNodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import {MentionNode} from './MentionNode';
import {PageBreakNode} from './PageBreakNode';
import {PollNode} from './PollNode';
import {StickyNode} from './StickyNode';
import {TableNode as NewTableNode} from './TableNode';
import {TweetNode} from './TweetNode';
import {YouTubeNode} from './YouTubeNode';

Expand All @@ -45,7 +44,6 @@ const PlaygroundNodes: Array<Klass<LexicalNode>> = [
ListItemNode,
QuoteNode,
CodeNode,
NewTableNode,
TableNode,
TableCellNode,
TableRowNode,
Expand Down
44 changes: 0 additions & 44 deletions packages/lexical-playground/src/nodes/TableCellNodes.ts

This file was deleted.

Loading

2 comments on commit fe08854

@vercel
Copy link

@vercel vercel bot commented on fe08854 Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical – ./packages/lexical-website

lexical-git-main-fbopensource.vercel.app
www.lexical.dev
lexical-fbopensource.vercel.app
lexicaljs.com
lexicaljs.org
lexical.dev

@vercel
Copy link

@vercel vercel bot commented on fe08854 Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical-playground – ./packages/lexical-playground

lexical-playground-git-main-fbopensource.vercel.app
lexical-playground-fbopensource.vercel.app
lexical-playground.vercel.app
playground.lexical.dev

Please sign in to comment.