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

feature/markdown editor #292

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

feature/markdown editor #292

wants to merge 12 commits into from

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