This repository was archived by the owner on Oct 11, 2022. It is now read-only.
This repository was archived by the owner on Oct 11, 2022. It is now read-only.
Can not select all content in code-block if disabling renderLanguageSelect
#81
Open
Description
I tried to get rid of language select and set renderLanguageSelect
in config as the function that returns ''
. Now I dont see the language select but code became not selectable.
@mxstbr the same happens in the spectrum
app https://www.dropbox.com/s/hfagg1nr6sgakhs/Screenshot%202018-05-21%2015.44.36.png?dl=0 (try to start a code block and press cmd+a)
Maybe we should make custom code component optional? Because now even if renderLanguageSelect
return empty, content is still wrapped in CodeSwitchContainer
https://github.com/withspectrum/draft-js-markdown-plugin/blob/master/src/components/Code/index.js#L11