-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Community Extensions #819
Comments
I would love to. I am working for a project that involves rich content editor. I am trying to bring each feature one by one. Till now, I was able to get inline math and block level math integrations without any errors. There were few minor issues. But I was able to correct them. I am more than happy to share it. But I am not writing any unit tests. Is it okay ? |
This comment has been minimized.
This comment has been minimized.
Increasing the collection with
|
Found a plugin that supports pasting images under #686 (comment) 👇 https://gist.github.com/slava-vishnyakov/16076dff1a77ddaca93c4bccd4ec4521 |
Leaving this here as a request: heading anchor links extension #662 |
Resizable image plugin: #740 (comment) (links to this gist) |
I created a gist with a TextColor extension file as well as an example with a |
I've ported the TrailingNode extension for TipTap 2: https://gist.github.com/jelleroorda/2a3085f45ef75b9fdd9f76a4444d6bd6 |
Oh, thanks! Great work! I’ve added it as a (more or less hidden) experiment to the documentation. I think we’ll add this as an official extension: |
One approach for resizable images for v2 #1283 Just doing my reading before trying to create an iframe video embed for v2... |
I got video (as) working (as I need to for now) in my project :) My use case is embedding YouTube, Vimeo or Loom video (the URLs of which have already been created/sanitised outside of tiptap). I pulled some example code out of my project and put it in my example I'd hacked the helper class for the parent div
Which would be better retrieved from the I guess to make these draggable we'd need to add a handle since all clicks on the iframe belong to the iframe. How does tiptap handle dragging, is it explicitly the node itself, or can we set a handle element somehow? I'm happy with deleting/re-adding in my project tbh. |
I've updated the gist, by adding a TypeScript variant for trailing node as well. @hanspagel I have also ported your Subscript extension and your Superscript extension for v2 with TypeScript. Thanks again for those 😄. |
@jelleroorda Could you give me a couple of tips on how to implement this Subscript/Superscript extensions to an existing Vue project, where changing the file extensions to .ts is not an option? |
@andon94 it should be almost exactly the same, it doesn't require TS. See a quick (untested) example here https://gist.github.com/joevallender/47e957298d7fbf4c41f5a1ba462d1d59 |
@chenyuncai |
Hey folks, I've been meaning to post this there, but I always end up forgetting about it 😅 This is not an extension per se, but we open-source our Typist editor built on top of Tiptap. It includes a few custom/extended extensions with new and improved features, and it also comes with support for Markdown input/output. |
code here https://github.com/chenyuncai/tiptap-track-change-extension |
Is there a way to limit html size? I read the other thread as well, but I think the custom extensions were for tiptap 1. |
Hello everyone, I created two extensions for tiptap, here they are. Hope that it will help out someone https://www.npmjs.com/package/@rcode-link/tiptap-drawio |
@chenyuncai Your idea looks amazing, can you share? |
yes, take a look here https://github.com/chenyuncai/tiptap-track-change-extension |
I've released a package called mui-tiptap https://github.com/sjdemartini/mui-tiptap, which adds built-in styling using Material UI, and includes a suite of additional components and extensions. I've been using this code in a production app successfully for months and have incorporated several things that I think add value beyond vanilla Tiptap. For instance:
Here's a quick demo of some of the UI/functionality (check out the README for a CodeSandbox link and more details): The package is still fairly new—I plan to add more functionality soon—but I figured folks here may be interested. I welcome feedback and/or contributions! |
Hello, I want to share an extension I created for uploading images with a loading placeholder. I have based it on the ProseMirror example at "https://prosemirror.net/examples/upload/". I hope you can add it and find it useful. I'm a backend developer, and this is my first npm package. I hope everything is alright configured. https://github.com/carlosvaldesweb/tiptap-extension-upload-image Grabacion.de.pantalla.2023-08-25.a.la.s.20.54.49.mov |
New Extensions: Hyperlink & HyperMultimedia 🚀Hello TipTappers! We're excited to introduce two new extensions to enhance your Tiptap editing experience: Hyperlink Extension 🎩🪄Inspired by Tiptap's HyperMultimedia Extension 🎥🎶Enhance Tiptap with our HyperMultimedia extension, facilitating the embedding of We value your feedback. Share your thoughts to help us refine these extensions! 💫💬 Hyperlink Demo | HyperMultimedia Demo hypermultimedia-github.mp4 |
Hi, has anyone ever written a hashtag extension (like on Facebook) or a similar extension? I need such an extension but don't know how to customize it |
You can likely extend the mention plugin. The idea is pretty similar right? You trigger with the |
Hi, I needed to support div tags in the html editor, and I kind of get a solution. It is not perfect, but at least it allows you to add div to your code using editor.chain().insertContent(). I hope it will help to other people, and if you can help me to improve this extensiion would be great. DivExtension.ts:
extensionUtils.ts:
|
I am also trying to support icons in the editor, and it seems easy, but for any reason it is not rendering the svg even when it is inserted in the html. Somebody could help me to guess why? SvgExtension.ts:
PathExtension.ts:
I insert this icon in the editor, but for any reason it is not being displayed. If I add this in a plane html file, it works... Can somebody help me? Thank you!
|
Even though I am still quite new to tiptap/prosemirror, I have managed to develope a working drag handle based on the drag handle from https://github.com/steven-tey/novel. However, unlike with the drag handle in novel, it is possible to drag single list items or whole lists through the editor as expected. Furthermore, it is also possible to select several nodes of different types and drag them as well. I look forward to your feedback and any suggestions for improvement. |
I threw together a little extension to add Shiki syntax highlighting to Tiptap. I only did it for myself, but thought it might be useful for someone else. https://github.com/timomeh/tiptap-extension-code-block-shiki |
Hey everyone, I am using TipTap as a document service for sending bulk emails to clients using prefilled variables. I need to import the documents as HTML and maintain the original styling. From what I have read it is considered a feature of TipTap that the styles are stripped away and I need to make an extension. I am really struggling with this. Has anyone had any luck? |
Hey everyone! I have been trying forever to get a space between functionality in my Tiptap editor. Basically, I would love to be able to have text aligned left and right on the same line - I want to be able to add dates to my header text and have the dates aligned to the right of the page. My current custom extension achieves this, but the text becomes uneditable after I use it:
|
I'm closing this issue for now as this is super legacy. You can submit your community extensions here: I'd ask everyone else who had questions in this thread to move it over to Discord or Github Discussions as we can actually mark things as "answered" there :) |
Hi everyone!
I’ve seen a ton of helpful Gists with custom extensions for Tiptap. It’s amazing what you all come up with! 🥰
Unfortunately, we don’t have the capabilities to maintain all of them in the core packages, but it’s sad to see those gems hidden in some Gists. What if you - the community - could easily provide those as separate npm packages?
Advantages of packages
Image
node including the Upload to S3 mechanic)Proof of Concept
I built a tiny proof of concept for superscript and subscript, see here:
https://github.com/hanspagel/tiptap-extension-superscript
https://github.com/hanspagel/tiptap-extension-subscript
Usage:
Examples of community Gists, code snippets, PRs and ideas
Tiptap v2
Tiptap v1
Not needed with Tiptap v2
Roadmap
I think we’d need to do a few things to make that easier for everyone:
Your feedback
What do you all think? Would you be up to contribute a community extension?
Feel free to post links to Gists of others you’d love to see published as a package.
The text was updated successfully, but these errors were encountered: