Closed condorheroblog closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
next-tiptap-4q2x | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 18, 2024 5:29am |
Oops, I forgot to tell you about this.
I changed the way components are exported, using named exports instead of default exports for all components. This makes it much easier to export components for user use.
By the way, I think it would be better to rename the RcTiptapEditor
component to something like RichTextEditor
or RichTextTiptapEditor
. This would be more intuitive, and its parameter type could be RichTextEditorProps
/ RichTextTiptapEditorProps
.
Oops, I forgot to tell you about this.
I changed the way components are exported, using named exports instead of default exports for all components. This makes it much easier to export components for user use.
By the way, I think it would be better to rename the
RcTiptapEditor
component to something likeRichTextEditor
orRichTextTiptapEditor
. This would be more intuitive, and its parameter type could beRichTextEditorProps
/RichTextTiptapEditorProps
.
yeah, we can rename it. RcTiptapEditor is an old name that I moved to from an old source
I set the prefix as 'rc', inspired by the 'rc' component of ant-design.
thank you very much for your contribution
Related issue: https://github.com/hunghg255/reactjs-tiptap-editor/issues/11
Regarding how to display the bubble menu, I've done some experiments. Here are the changes made in this update. The modifications are significant, so you can adopt them entirely or partially, and feel free to modify my code as needed.
Build and packaging: I added SourceMap functionality. The editor has many features, and when errors occur, it's very difficult to debug. I believe SourceMap is essential, so I added SourceMap packaging functionality.
Removed the 'bubble' property you added in the previous version, as it's no longer relevant after the redesign.
The bubble menus in the system are now automatically loaded based on the plugins imported by the user.
Users can disable the system's bubble menus. This is implemented through the 'bubbleMenu' property, where I used an object format to allow for potential future additions.
Users can customize the bubble menu through the 'render' function of the 'bubbleMenu' property.