Socket
Book a DemoInstallSign in
Socket

@docus/editor-edge

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@docus/editor-edge

Docus Editor

unpublished
latest
Source
npmnpm
Version
0.1.0-27294816.0adf826
Version published
Weekly downloads
0
Maintainers
5
Weekly downloads
 
Created
Source

Docus Editor

Custom Milkdown editor with the power of MDC syntax.

💡 This package depends on many @milkdown dependencies.

Quick Setup

  • Add @docus/editor dependency to your project:
# Using Yarn
yarn add @docus/editor
# Using NPM
npm install @docus/editor
# Using PNPM
pnpm install @docus/editor
  • Add @docus/editor to the buildModules section of your nuxt.config.js
{
  buildModules: ['@docus/editor']
}

Usage

The module auto imports a DocusEditor component you can use in your project:

<template>
  <div>
    <DocusEditor v-model="content" :components="components" />
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue'
import type { ComponentDefinition } from '@docus/editor'

export default defineComponent({
  setup () {
    const content = ref('')
    const components: ComponentDefinition[] = [
      {
        name: 'MyComponent',
        props: [
          {
            name: 'value',
            type: ['string'],
            default: "'foo'"
          }
        ],
        slots: []
      }
    ]

    return {
      content,
      components
    }
  }
})
</script>

DocusEditor props

NameTypeDescription
valuestringMarkdown content
componentsComponentDefinition[]List of component definitions used for / commands

Development

  • Clone this repository
  • Install dependencies using pnpm install
  • Start dev server using pnpm dev

Keywords

docus

FAQs

Package last updated on 23 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts