Skip to content
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

Advanced markdown editor for sending messages #11

Closed
447011 opened this issue Nov 21, 2022 · 0 comments
Closed

Advanced markdown editor for sending messages #11

447011 opened this issue Nov 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@447011
Copy link
Contributor

447011 commented Nov 21, 2022

Replace the current input message box with react-md-editor.

Use this package:
https://github.com/uiwjs/react-md-editor

This is how you set it up for next.js:
https://github.com/uiwjs/react-md-editor#support-nextjs

What does success look like?

Functionality:

  • Bold
  • Italic (we might remove that)
  • Strikethrough (we might remove that)
  • Link
  • Quote
  • Code (we might remove that)
  • Codeblock
  • Ordered list (we might remove that)
  • Unordered list (we might remove that)
  • Write mode
  • Split screen mode (we might remove that)
  • Preview mode
  • Full screen mode (we might remove that)

image

Additonal notes

Mobile

Make sure everything works great on mobile.

There should be minimal custom code outside of the provided props from the editor

Try to use the default props and functionality from the component.

https://uiwjs.github.io/react-md-editor/#props

image

Security

We'll need to sanitize the content.

https://uiwjs.github.io/react-md-editor/#security

Display messages

We'll also need to display the messages correctly. Probably we'll add custom CSS inside of the message component:

<style>
h1 { @apply text-2xl }
strong { @apply text-bold }
...
</style>
@447011 447011 added the enhancement New feature or request label Nov 21, 2022
@447011 447011 changed the title Add markdown editor for sending messages Advanced markdown editor for sending messages Nov 21, 2022
@SMLukwiya SMLukwiya self-assigned this Nov 21, 2022
@447011 447011 closed this as completed Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants