Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

iView Editor

License

NotificationsYou must be signed in to change notification settings

iview/iview-editor

Repository files navigation

http://editor.iviewui.com

iView Editor 是基于 iView 的 markdown 编辑器,支持上传图片(可集成七牛等服务),支持全屏实时编辑预览。

如何使用

通过 npm 安装

npm install iview-editor --save

在 webpack 中使用插件,部分代码省略:

importVuefrom'vue';importiViewfrom'iview';importiEditorfrom'iview-editor';// 使用 cssimport'iview/dist/styles/iview.css';import'iview-editor/dist/i-editor.css';// 使用插件Vue.use(iView);Vue.use(iEditor);

在 .vue 中使用:

<template><i-editorv-model="content"></i-editor></template><script>exportdefault{data(){return{content:''}}}</script>

通过 CDN 使用

<!DOCTYPE html><html><head><metacharset="utf-8"><title>iView Editor</title><linkrel="stylesheet"type="text/css"href="http://unpkg.com/iview/dist/styles/iview.css"><linkrel="stylesheet"type="text/css"href="http://unpkg.com/iview-editor/dist/iview-editor.css"><scripttype="text/javascript"src="http://vuejs.org/js/vue.min.js"></script><scripttype="text/javascript"src="http://unpkg.com/iview/dist/iview.min.js"></script><scripttype="text/javascript"src="http://unpkg.com/iview-editor/dist/iview-editor.js"></script></head><body><divid="app"><i-editorv-model="content"></i-editor></div><script>newVue({el:'#app',data:{content:''}})</script></body></html>

About

iView Editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp