Skip to content

Conversation

stiansolli
Copy link

💎 Add markdown editor for events

When creating or editing we now have buttons for different actions such as:

  • Write (Editing) or preview
  • Insert link
  • Insert bold font
  • insert italic font
  • Insert header with dropdown menu for different levels
  • And emojipicker🤩 (Button toggles if emoji picker is shown or not)

Default view:

Screenshot 2024-08-17 at 20 05 38

With some text and emojipicker opened:

Screenshot 2024-08-17 at 20 15 28

Preview of markdown:

image

Copy link
Collaborator

@otytlandsvik otytlandsvik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a small comment in the code, otherwise looks good. However, the emoji picker seems bugged out. Sometimes, added emojis do not appear in the final text. It seems toggling preview also has an effect on this.

}
const rowlen = input ? input.toString().split('\n').length : 2;
const max = 14;
setRows(rowlen < max ? rowlen : max);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more readable with the reverse if statement.

if (resize) {
...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants