hicommonwealth / commonwealth

A platform for decentralized communities
https://commonwealth.im
GNU General Public License v3.0
67 stars 42 forks source link

MDXEditor implementation tasks #8937

Open burtonator opened 3 weeks ago

burtonator commented 3 weeks ago

Describe the bug

Break up the steps to implement the MDXEditor

v0:

This version is intended to get the desktop editor in front of the team and to send in a smaller PR that they can review and so that I have time to incorporate any changes necessary.

v1:

v2:

Main focus here is to get the editor fully flushed out, and that we can also SSR render this properly.

v3:

This should start the actual implementation in the site:

Optional tasks

These are some (probably) optional features that are nice to have but not strictly required:

Remaining Issues

I need some feedback on these issues but most won't need to be fixed.

Initial conditions

Environment:

Branch/Release version:

Browser:

Wallet:

Reproduction steps

Actual behavior

Expected behavior

Screenshots / Video

Reporter

Additional context

burtonator commented 2 weeks ago

UI Open Questions

burtonator commented 2 weeks ago

Reading Clipboard Data

It IS possible to read the type of data posted with on Paste via event.clipboardData BUT I need to test to see if text copied is text or markdown.

For markdown. I think it would be better to have a 'raw' mode and then allow the user to switch to that mode, then paste the data directly.

I need to get that working in v2 though... we should ship this version of the editor first I think.