Skip to content

Commit

Permalink
fix integeration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahejkm committed Jul 23, 2024
1 parent 896b819 commit 62cb026
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions examples/react-table/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import ExampleTheme from './ExampleTheme';
import ToolbarPlugin from './plugins/ToolbarPlugin';
import TreeViewPlugin from './plugins/TreeViewPlugin';

const placeholder = 'Enter some rich text...';

const editorConfig = {
namespace: 'React.js Demo',
nodes: [TableNode, TableCellNode, TableRowNode],
Expand Down Expand Up @@ -69,6 +67,10 @@ function InsertTable({
return <></>;
}

function Placeholder() {
return <div className="editor-placeholder">Enter some rich text...</div>;
}

export default function App() {
const [showTable, setShowTable] = useState<boolean>(false);
return (
Expand All @@ -77,15 +79,8 @@ export default function App() {
<ToolbarPlugin />
<div className="editor-inner">
<RichTextPlugin
contentEditable={
<ContentEditable
className="editor-input"
aria-placeholder={placeholder}
/>
}
placeholder={
<div className="editor-placeholder">{placeholder}</div>
}
contentEditable={<ContentEditable className="editor-input" />}
placeholder={<Placeholder />}
ErrorBoundary={LexicalErrorBoundary}
/>
<HistoryPlugin />
Expand Down

0 comments on commit 62cb026

Please sign in to comment.