Skip to content

Can the editor be used separately? #323

Open

Description

@huodoushigemi

For example

<template>
  <Monaco :value="value" />
</template>

<script setup>
import Monaco from '@vue/repl/monaco-editor'

const value = `<template>xxx</template>`
</script>

Or hide the preview

<template>
  <Repl :editor="Monaco" :show-preview="false" />
</template>

<script setup>
import { Repl } from '@vue/repl'
import Monaco from '@vue/repl/monaco-editor'
</script>

Activity

  1. wangcch commented on Feb 24, 2025

    @wangcch
    Collaborator

    Only the editor is displayed.
    Do you want to implement a custom layout? 🤔

  2. huodoushigemi commented on Feb 25, 2025

    @huodoushigemi
    Author

    I wanted to support Vue syntax in monaco editor, so I found this project

  3. added
    enhancement
    on Feb 25, 2025
  4. 2091124175 commented on Apr 9, 2025

    @2091124175

    我想问下 能不能只用这个预览器 预览这个模板代码 模板代码是接口回来的

  5. wangcch commented on Apr 9, 2025

    @wangcch
    Collaborator
  6. just-a-demo commented on Jan 27, 2026

    @just-a-demo

    我想在 Monaco 编辑器中支持 Vue 语法,所以发现了这个项目

    Hello, have you found a solution yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions