The-Commit-Company / Raven

Simple, open source team messaging platform
https://thecommit.company/products/raven
GNU Affero General Public License v3.0
250 stars 87 forks source link

fix: formatting issues on tiptap editor #869

Closed prathameshkurunkar7 closed 2 months ago

prathameshkurunkar7 commented 2 months ago

As per the issues mentioned above, here are the changes made:

Solutions:

  1. Added support for Inline Code, another button which lets you add inline code and render's it similarly.
  2. Code Block takes up entire text instead of the current line is fixed by allowing Shift + Enter to add soft line breaks, which would make the node as separate paragraph tags which in turn allows us to add code block to particular line instead of entire text block. Moreover discovered that 3 times press Enter inside CodeBlock would allow us to escape it as well.
  3. Link was extensible but fixed it by referring to the solution mentioned in the thread. https://github.com/ueberdosis/tiptap/issues/2571
  4. Upgraded the TipTap packages to latest version.

Also close #733 as it was solved earlier.