🤌 Rich text editor with real-time collaboration (Tiptap)

Hey @rico.trevisan,
This RTE looks very nice.
Rookie question here but how can I setup the bubblemenu or bubblefloating menu to work? Do you have a demo or documentation?
Also, is it possible to setup the RTE so if I paste a link on a selected text the text changes color and now if you click it works as a link? (similar to notion or slack).
Thanks!

Thanks. No, I don’t (yet) have a tutorial on how to build it (but I do have it on my todo list for a shameful long while). In the meantime, you could look at the example app to see how it is setup: Tiptap-demo | Bubble Editor

Essentially involves:

  1. creating a group with the buttons
  2. giving an ID to it
  3. telling Tiptap the ID that you used for it

For the link on paste, this is a native feature of Tiptap so it should work.

1 Like

Great, I’ll deep dive the coming days into this. That said, 3 quick questions:

  1. Any idea why the placeholder is not showing?
  2. Do I need to setup something for linkOnPaste?
  3. How can I add line-spacing? Couldn’t find that.
    :point_right:t3: Here a 30 seconds video

Thanks!

If you ever run into issues with the bubble menu (the floating one upon text selection) getting clipped like the below example:

You can band-aid fix it via adding the following CSS to the tiptap editor itself:

  overflow: visible !important;

Result:

4 Likes

This is great! Where do you add the CSS exactly?

Thanks in advance.

Line-spacing solution (in case some one needs this) :point_down:t3:

1 Like

I turns out that I need to delete the ones that were not work and insert new tiptaps. Then it works. Not sure why that is, but I am really glad that I can now update to the latest versions!

1 Like

You can use an html element and place the css within tags.

I’ll add this as a standard to the editor.

I’m having a hard time reproducing it on my side. How do you make it happen? Is it a combination of a max height and small/no padding or margins around the editor?

Release 2.7.1 - placeholder fix

  • it should show up now
  • you can customize the color of the placeholder

CleanShot 2023-11-20 at 01.46.40

Hi Rico,
I am venturing into the collaboration function of the Tiptap. I followed your instructions to set up the APP secret, app id and generated JWT, etc. However, it doesn’t seem to work.

I have the Tiptap element in a reusable element. When an element is clicked, the reusable is shown in a floating group.

I have auto-binding checked also.

On two different instances, the JWT generated are different. I am assuming that is supposed to be that way, correct?

Is there something that I missed? Is there a way for you to do video with a fake App ID? So that we can make sure we got it set up correctly?

Thanks!

Another question. How do you set font color? It is not in the demo editor. However, I see in one of your videos where it appears to have a button that is to change font color. :). Would be great if you can give a few bullet points as to how to do that.

Thanks!

Grady

Try turning off autobind.

If that doesn’t work, do send me a DM with the video walking through the app, specially with the browser’s console open.

I’m not sure how the plugin behaves in a reusable with multiple reusables on the same page AND with collab on. Technically I don’t see any limitations.

I need to do a better job with the documentation this plugin. I put together a couple of tutorial videos but haven’t gotten around to the collaboration yet nor publishing all the other ones.

It happens when the editor is inside a reusable element within a repeating group (the trifecta!). I blame it on the reusable element having fit height to content and then the repeating group basically clipping it off.

Hi Rico,
I’m trying to insert an image as part of the rich text editor, but I don’t know how to resize it so people don’t see it with its original size, but resize it to 100%.

I’ve read through the forum, and I’ve tried these two ways:

1.- add an ā€œinsert image to tip tap.ā€

2.- add it as an ā€œinsert contentā€ action and change the width through HTML
image

None of those ways have worked! I see how the image resizes in the tiptap editor placed in my admin panel, but it still appears at its original size when shown in a blog post.
The blog post body is saved as Tip Tap’s content (HTML), as you can see below, so I don’t understand why I cannot see it properly and I don’t know what else to do.

image

Could someone please let me know how you usually add images to body text through the tip tap editor? I just want to find a way to show the images with a 100% width in blog posts.

Thanks in advance for your help, and thank you, Rico, for your valuable contributions to the community!

Hi Sonia,

I was just taking a look at the underlying command and – currently – there’s no way to resize each image individually. In the settings of Tiptap you can set some CSS that will apply to all images in the document.

I’m currently making an improvement for @gradylam ; as soon as I get that done I’ll take a look at further options for images.

1 Like

Release 2.8.0 - double collab

  • you can have multiple collab docs in one page
  • you can now send multiple docs names / ids in one action and get one JWT token which can be used across multiple editors in the same page, cc: @gradylam
  • fix for collab – for a while Tiptap didn’t require the Yjs library directly; it does again.
  • fix for input reset firing before editor was ready
  • fix: bundled all the libraries to the plugin to avoid collab not starting when there was a dependency mismatch with Yjs

@rico.trevisan Since 2.7.2 Auto binding is clearing out the content of tiptap every 2-3 seconds. Below is a loom (initial tiptap editor is just an element on screen and then the second one i test on is within a reusable). Works fine in v2.7. Saw your changelog for v2.8 (fix for input reset firing before editor was ready) which I assume references this, but i tested in that version as well and same issue.

1 Like

I ran into the same issue today.

Issue with check box (task)

I am running into issue when using the checkbox in the Tiptap. I have disabled the autobinding. When I check the checkbox, and save it. Then pull up the data on another page, it doesn’t show the box being check. This happens randomly. Sometimes it works, sometimes it doesn’t.

Please help.