Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Conversation

@juliankrispel
Copy link

So I believe we want this - a language switcher for code blocks

language switche

draft-js editors often use click events (to focus on the editor or whatever) so I'd use react-portal to display the language selection menu.

Are there any components that you guys already use or that you prefer using? It's just that there are hundreds of components like these - so any pointers as to how you'd like to have it implemented would be cool.

cc @mxstbr

@mxstbr
Copy link

mxstbr commented Mar 27, 2018

Yeah! We use [email protected]

@juliankrispel
Copy link
Author

code-switch - ok - hab das mal so gelöst - mit einem normalen select - aber werds noch ein bisschen stylen!

@mxstbr
Copy link

mxstbr commented Apr 5, 2018

Nice!! 😍

@juliankrispel
Copy link
Author

  • styled the demo select
  • added and documented config options for rendering select and passing language options

code-switch-2

@juliankrispel juliankrispel changed the title [WIP] - codeblock language switch codeblock language switch Apr 5, 2018
Copy link

@mxstbr mxstbr left a comment

Choose a reason for hiding this comment

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

Awesome, this looks great! 💯

@mxstbr mxstbr merged commit dc86d63 into withspectrum:master Apr 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants