@php-script/editor-vue
v0.1.2
Published
Vue 3 wrapper for the <php-script-editor> web component (v-model support).
Readme
@php-script/editor-vue
Documentation: https://php-script.github.io/php-script-editor/packages/vue.html
Vue 3 wrapper for the <php-script-editor> web component, with v-model. Loads the element on the client only, so it is safe with Nuxt SSR.
Installation
npm i @php-script/editor-vue monaco-editorUsage
<script setup lang="ts">
import { ref } from 'vue';
import { PhpScriptEditor } from '@php-script/editor-vue';
const code = ref('echo "Hello";');
</script>
<template>
<PhpScriptEditor v-model="code" config-url="/php-script/config" />
</template>See the documentation for all props, events and methods, and Server and language config for the endpoints.
