litingyes / vue-monaco-editor

monaco-editor with vue3

Home Page:https://vue-monaco-editor.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue Monaco Editor

monaco-editor with vue3

Install

pnpm add @liting-yes/vue-monaco-editor

Usage

import '@liting-yes/vue-monaco-editor/style.css'

MonacoEditor

import MonacoEditor from '@liting-yes/vue-monaco-editor'

or

import { MonacoEditor } from '@liting-yes/vue-monaco-editor'

Props

interface Props {
  language?: string;
  readOnly?: boolean;
  value?: string;
  options?: monaco.editor.IStandaloneEditorConstructionOptions;
}

MonacoDiffEditor

import { MonacoDiffEditor } from '@liting-yes/vue-monaco-editor'

Props

interface Props {
  language?: string;
  theme?: string;
  values?: string[]; // [original text, modified text]
  readOnly?: boolean;
  options?: monaco.editor.IStandaloneDiffEditorConstructionOptions;
}

LICENSE

MIT

About

monaco-editor with vue3

https://vue-monaco-editor.netlify.app/

License:MIT License


Languages

Language:Vue 47.8%Language:TypeScript 45.2%Language:HTML 3.7%Language:JavaScript 3.3%