Created
April 18, 2019 20:46
-
-
Save hypeJunction/23ff0569d0296306f4e78a11f937ba67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import codemirror from 'vue-codemirror/src/codemirror.vue'; | |
export default (config) => { | |
if (config) { | |
if (config.options) { | |
codemirror.props.globalOptions.default = () => config.options; | |
} | |
if (config.events) { | |
codemirror.props.globalEvents.default = () => config.events; | |
} | |
} | |
return codemirror; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment