-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Passing codemirrorOptions as a configuration #649
Conversation
Codecov Report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
Could you also update the docs and add some tests if possible?
@@ -39,6 +39,18 @@ module.exports = { | |||
map: 'lodash/map', | |||
}, | |||
}, | |||
codemirrorOptions: { | |||
type: 'object', | |||
default: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be overwritten if codemirrorOptions
isn’t undefined
, we need to merge objects manually using process
function.
@@ -15,7 +15,7 @@ const filterComponentsWithExample = require('./utils/filterComponentsWithExample | |||
// Config options that should be passed to the client | |||
const CLIENT_CONFIG_OPTIONS = [ | |||
'title', | |||
'highlightTheme', | |||
'codemirrorOptions', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change, we should keep the old option until the next major release. See updateExample
option in the config schema.
editorConfig
would be a more generic name, and better match existing options like compilerConfig
.
Hi Artem, unfortunately I can't spend more time on this issue for the time being. |
Closing in favor of #662. |
No description provided.