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

📝 Markdown editor #4681

Merged
merged 20 commits into from
Aug 23, 2023
Merged

📝 Markdown editor #4681

merged 20 commits into from
Aug 23, 2023

Conversation

thesan
Copy link
Member

@thesan thesan commented Aug 17, 2023

Honestly I didn't expect writing so much code for this feature. When I picked Slate I had misunderstood #3403, I thought it was about adding a rich text editor which would save and load markdown just like in Pioneer. Once I realized it was something similar to the GH editor I checked a few alternatives but they weren't very customizable so I kept Slate. But I might have been biased since I really didn't want to restart from scratch several days in.

Otoh it should make adding more feature later on easier if needed.

https://atlas-storybook-git-fork-thesan-feature-markdo-1572b7-joystream.vercel.app/?path=/story/inputs-markdowneditor--markdown-editor

Copy link
Contributor

@attemka attemka left a comment

Choose a reason for hiding this comment

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

lgtm!

@thesan thesan changed the base branch from dev to crt August 22, 2023 13:27
@attemka attemka merged commit 9b06879 into Joystream:crt Aug 23, 2023
WRadoslaw pushed a commit that referenced this pull request Mar 5, 2024
* Add markdown editor

* Parse content from and to markdown

* Render markdown

* WIP

* Add format buttons

* Flatten text nodes

* Style the toolbar

* Switch to pure markdown

* Add basic markdown "shortcuts"

* Improve inline formats wrapping

* Add link and separator buttons

* Remove unused dependencies

* Support undo/redo via keyboard shortcuts

* Add a placeholder

* Add a max length

* Small refactor

* Clean unused code

* Pre-select the url after adding a link

* Add common keyboard shortcuts

* Re-use Atlas styles
WRadoslaw pushed a commit that referenced this pull request Mar 14, 2024
* Add markdown editor

* Parse content from and to markdown

* Render markdown

* WIP

* Add format buttons

* Flatten text nodes

* Style the toolbar

* Switch to pure markdown

* Add basic markdown "shortcuts"

* Improve inline formats wrapping

* Add link and separator buttons

* Remove unused dependencies

* Support undo/redo via keyboard shortcuts

* Add a placeholder

* Add a max length

* Small refactor

* Clean unused code

* Pre-select the url after adding a link

* Add common keyboard shortcuts

* Re-use Atlas styles
WRadoslaw pushed a commit that referenced this pull request Mar 14, 2024
* Add markdown editor

* Parse content from and to markdown

* Render markdown

* WIP

* Add format buttons

* Flatten text nodes

* Style the toolbar

* Switch to pure markdown

* Add basic markdown "shortcuts"

* Improve inline formats wrapping

* Add link and separator buttons

* Remove unused dependencies

* Support undo/redo via keyboard shortcuts

* Add a placeholder

* Add a max length

* Small refactor

* Clean unused code

* Pre-select the url after adding a link

* Add common keyboard shortcuts

* Re-use Atlas styles
WRadoslaw pushed a commit to WRadoslaw/atlas that referenced this pull request Apr 22, 2024
* Add markdown editor

* Parse content from and to markdown

* Render markdown

* WIP

* Add format buttons

* Flatten text nodes

* Style the toolbar

* Switch to pure markdown

* Add basic markdown "shortcuts"

* Improve inline formats wrapping

* Add link and separator buttons

* Remove unused dependencies

* Support undo/redo via keyboard shortcuts

* Add a placeholder

* Add a max length

* Small refactor

* Clean unused code

* Pre-select the url after adding a link

* Add common keyboard shortcuts

* Re-use Atlas styles
WRadoslaw pushed a commit to WRadoslaw/atlas that referenced this pull request Apr 22, 2024
* Add markdown editor

* Parse content from and to markdown

* Render markdown

* WIP

* Add format buttons

* Flatten text nodes

* Style the toolbar

* Switch to pure markdown

* Add basic markdown "shortcuts"

* Improve inline formats wrapping

* Add link and separator buttons

* Remove unused dependencies

* Support undo/redo via keyboard shortcuts

* Add a placeholder

* Add a max length

* Small refactor

* Clean unused code

* Pre-select the url after adding a link

* Add common keyboard shortcuts

* Re-use Atlas styles
WRadoslaw pushed a commit to Joystream/gleev that referenced this pull request Apr 22, 2024
* Add markdown editor

* Parse content from and to markdown

* Render markdown

* WIP

* Add format buttons

* Flatten text nodes

* Style the toolbar

* Switch to pure markdown

* Add basic markdown "shortcuts"

* Improve inline formats wrapping

* Add link and separator buttons

* Remove unused dependencies

* Support undo/redo via keyboard shortcuts

* Add a placeholder

* Add a max length

* Small refactor

* Clean unused code

* Pre-select the url after adding a link

* Add common keyboard shortcuts

* Re-use Atlas styles
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.

3 participants