
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
vue-neditor-wrap
Advanced tools
$ npm i vue-neditor-wrap
下载官方资源文件
下载完成后放在本地public下,命名为NEditor的文件夹下
引入VueNeditorWrap组件
import VueNeditorWrap from 'vue-neditor-wrap'
注册组件
components: {
VueNeditorWrap
},
v-model绑定数据
<vue-neditor-wrap v-model="content" :config="myConfig" :destroy="false" @ready="ready"></vue-neditor-wrap>
data () {
return {
myConfig: {
// 如果需要上传功能,找后端小伙伴要服务器接口地址
serverUrl: '/api/web/upload/ueditor',
// 你的UEditor资源存放的路径,相对于打包后的index.html
UEDITOR_HOME_URL: '/NEditor/',
// 编辑器不自动被内容撑高
autoHeightEnabled: false,
// 初始容器高度
initialFrameHeight: 240,
// 初始容器宽度
initialFrameWidth: '100%',
// 关闭自动保存
enableAutoSave: false
},
content: '',
}
}
至此你已经可以在页面中看到一个初始化之后的
NEditor了,并且它已经成功和数据绑定了!


FAQs
Vue + NEditor + v-model双向绑定
The npm package vue-neditor-wrap receives a total of 18 weekly downloads. As such, vue-neditor-wrap popularity was classified as not popular.
We found that vue-neditor-wrap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.