Skip to content

Instantly share code, notes, and snippets.

@hypeJunction
Created April 18, 2019 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hypeJunction/23ff0569d0296306f4e78a11f937ba67 to your computer and use it in GitHub Desktop.
Save hypeJunction/23ff0569d0296306f4e78a11f937ba67 to your computer and use it in GitHub Desktop.
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