This package has been deprecated

Author message:

this package has been deprecated

vue-monaco-component

0.0.1 • Public • Published

vue-monaco-component

Vue wrapper for the Monaco Editor

Demo

https://edit.withwax.com/

Installation

npm install --save-dev monaco-editor-webpack-plugin
npm install --save vue-monaco-component

npm package link

Setup & example

// webpack.config.js
const MonacoEditorPlugin = require("monaco-editor-webpack-plugin");

module.exports = {
  plugins: [new MonacoEditorPlugin()]
};
// Component.vue
<template>
  <monaco-editor
    v-model="code"
    language="handlebars"
    theme="vs-dark"
    style="width: 100%; height: 200px;"
  ></monaco-editor>
</template>

<script>
import MonacoEditor from "vue-monaco-component";
export default {
  data() {
    return {
      code: ""
    };
  },
  components: {
    MonacoEditor
  }
};
</script>

Powered by

  • Babel 7
  • Webpack 4

License

MIT

Twitter

Follow me on Twitter

Readme

Keywords

none

Package Sidebar

Install

npm i vue-monaco-component

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

2.51 MB

Total Files

7

Last publish

Collaborators

  • bjornkrols