New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

zj-vditor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zj-vditor

基于Vditor库的Markdown编辑器组件——Жидзин(Zidjin)系列组件库。

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Zj-Vditor MarkDown编辑器

基于Vditor库的Markdown编辑器组件——Жидзин(Zidjin)系列组件

安装

推荐使用npm的方式安装

npm install zj-vditor

引入

import ZjVditor from 'zj-vditor';
export default {
    components: {
        ZjVditor,
    },
};

基本用法

初始化页面布局。

<template>
    <zj-vditor :url="docUrl" />
</template>

<script>
    export default {
        components: {
			ZjVditor: () => import('zj-vditor'),
		},
		data: () => ({
            docUrl: "./xxx.md",
        })
    };
</script>

ZjVditor Attributes

参数说明类型可选值默认值
valueMarkDown源文档内容string
urlMarkDown源文档URLstring
mode编辑模式stringsv 分屏预览, ir 即时渲染, wysiwyg 所见即所得wysiwyg
theme主题objectclassic, darkclassic
placeholder文档占位文字string
lang语言stringen_US, fr_FR, ja_JP, ko_KR, ru_RU, sv_SE, zh_CN, zh_TWzh_CN
tabtab 键操作字符串,
支持 \t 及任意字符串
string" "
max-length最大字数,0则不限制number0
enable-cache启用缓存。
是否使用 localStorage,实时缓存。
TODO:需设计加载时检查,以免被新内容替换。
booleantruefalse
only-read只读模式booleantruefalse
show-catelog是否显示目录大纲booleantruefalse
catelog-position大纲位置stringleftright

版本说明

V1.0.0.20230420-release

第一代稳定版本。未能有效加入锚点功能,未设计加载时检查缓存。

Keywords

vditor

FAQs

Package last updated on 20 Apr 2023

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