-
Notifications
You must be signed in to change notification settings - Fork 0
Rich text editor2 #162
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
base: main
Are you sure you want to change the base?
Rich text editor2 #162
Conversation
Bardin08
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general LGTM 👍
| //import RichTextEditor from "../../pages/RichTextEditor"; | ||
|
|
||
| // Example using RichTextEditor: | ||
| /*const YourPageComponent: React.FC = () => { | ||
| const handleFileUpload = (fileContent: string) => { | ||
| // Do something with the file content, e.g., save it or display it | ||
| console.log('File content:', fileContent); | ||
| }; | ||
| return ( | ||
| <div> | ||
| <h1>Your Page</h1> | ||
| <RichTextEditor onFileUpload={handleFileUpload} /> | ||
| </div> | ||
| ); | ||
| };*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to keep it here. We use VCS to avoid keeping unused code at the codebase
| return () => { | ||
| quill.off('text-change', () => {}); | ||
| quill.off('selection-change', () => {}); | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why u decided to add dummy subs?
| const fileContent = e.target?.result as string; | ||
| onFileUpload(fileContent); | ||
| }; | ||
| reader.readAsText(file); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which markdown langs are supported?
Closes #60