Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tiavina-mika committed Jul 27, 2024
1 parent aee2327 commit 55306f7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ A customizable and easy to use <a href="https://tiptap.dev/">Tiptap</a> styled W

- **[CodeSandbox demo](https://codesandbox.io/s/github/tiavina-mika/mui-tiptap-editor-demo)**
- **[Live demo](https://mui-tiptap-editor.netlify.app/)**
- **[Demo video](https://www.youtube.com/watch?v=_VhLVN51cwo)**
- **[Demo video](https://www.youtube.com/watch?v=KAxcH5a9Reg)**


<img alt="Screenshot" src="https://github.com/tiavina-mika/mui-tiptap-editor/blob/main/screenshots/screenshot.png" />
Expand Down
Binary file modified screenshots/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ const Toolbar = ({
name: "link",
icon: Link,
onClick: setLink,
disabled: !false,
disabled: false,
tooltip: toolbarLabels?.link || 'Link'
},
{
Expand Down
13 changes: 6 additions & 7 deletions src/dev/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ const App = () => {
<EmotionThemeProvider theme={theme}>
<Container>
<TextEditor
value="<h1>Exemaple using image</h1><img src='https://via.placeholder.com/150' alt='Hello there' title='This is used as legend' />"
// value="<h1>Exemaple using image</h1><img src='https://via.placeholder.com/150' alt='Hello there' title='This is used as legend' />"
inputClassName="flexColumn stretchSelf flex1"
label="Content"
placeholder="Enter your content here"
mentions={mentions}
user={currentUser}
bubbleMenuToolbar={['align']}
floatingMenuToolbar={['align', 'link', 'heading', 'image', 'table', 'youtube']}
// bubbleMenuToolbar={['align']}
// floatingMenuToolbar={['align', 'link', 'heading', 'image', 'table', 'youtube']}
withFloatingMenu
withBubbleMenu
userPathname="/users"
// withBubbleMenu
// userPathname="/users"
uploadFileOptions={{
uploadFile,
maxSize: 5,
Expand Down Expand Up @@ -134,8 +134,7 @@ const App = () => {
},
link: {
link: "Lien",
insert: "Insérer le lien",
invalid: "Lien invalide",
invalid: "Lien invalid",
},
youtube: {
link: "Lien",
Expand Down

0 comments on commit 55306f7

Please sign in to comment.