What is Nostr?
frederik_diamond / FREDERIK DIAMOND
npub1nj0…2gqz
2024-08-21 17:05:16

frederik_diamond on Nostr: Tried to implement my own text editor for my social media portfolio project. It works ...

Tried to implement my own text editor for my social media portfolio project.

It works (sort of), but now that I want to add functionality for bold and italic text, it’s getting pretty complicated.

Since my coding experience is limited, it’s a bit out of scope for a noob like me to implement something this complex.

I need to find a good rich-text editor library. I experimented with Quill and got it working, but I’ve since discovered TipTap and prefer their documentation, so I think I’m gonna use that.

#webdev #dev #nextjs

Share Post Feature Added

I recently got the sharing feature to work.

Next step: Implement functionality to quote a post. Quoting a post should also count as a share.

I also need to make the timeline update automatically when a user shares or quotes a post. Currently, the page needs to be refreshed to see changes, which isn't ideal.

The timeline should not automatically update when a user publishes a new post. Instead, it should display a button asking the user if they would like to refresh the feed to see new activity.

It would be annoying if the timeline updated while the user was focused on a post.

I will likely use SWR (by NextJS) to make the timeline update when specific changes occur.

(This project is for my portfolio, btw.)
#Coding #Dev #NextJS #Portfolio #Developer #webdev

Author Public Key
npub1nj0crmtetu84a7j43yegy358mp8u0e4ye7ndkhtd8dg0edll4mpqn52gqz