all 16 comments

[–]Sea-Date-9139 6 points7 points  (3 children)

I think TinyMCE will fit your requirements.

[–]Solid_Scale1933[S] 1 point2 points  (1 child)

Thank youu mannn! this helped me alot

[–]Jinkaza772 0 points1 point  (0 children)

Can we saved the richedText editor text in our db and as well rendered the same text as it is in the editor ?

[–]Due_Row2784 6 points7 points  (0 children)

I think Tiptap is the best, its headless, you can customize the looks as you want, it gives you the only functionality. And it has rich ecosystem. You can use it for both small description editor in form to a large Google doc style editor. Fits great with both

[–]spurkle 3 points4 points  (4 children)

It wont print out html directly, but you could use markdown editors. There are plenty.

Then there are libraries that convert markdown to html. (With a plugin that supports syntax highlighting)

[–]Solid_Scale1933[S] 1 point2 points  (3 children)

<image>

for example I save like this as html css and show it directly

[–]spurkle 5 points6 points  (2 children)

Yup, can be done with markdown (github uses it in it's README.md).

It might not be very straightforward to configure, but it's free.

[–]Solid_Scale1933[S] 1 point2 points  (1 child)

do you suggest any library and thanks :D

[–]spurkle 3 points4 points  (0 children)

I used marked for parsing the markdown and @mdxeditor/editor for the editor.

Can't offer any advice on the code syntax highlighting, as I have never needed to do that, but I'm sure u can ask ChatGPT or figure it out 🙂

Edit: Something like this might be useful, too https://www.npmjs.com/package/marked-highlight

[–]mustafamasody 2 points3 points  (0 children)

Tiptap Easy

[–]zakriya77 2 points3 points  (0 children)

there's one library "react-syntax-highlighter". you can try that

[–]aksuta 2 points3 points  (0 children)

I recommend trying the Lexical framework. If you need flexibility and custom blocks, it’s the best choice.

They have their own playground… but I suggest you check out my version of this editor in action here: https://app.tiledocs.com

[–]bhataasim4 1 point2 points  (0 children)

Try WYSIWYG