silenttiger / vue-ueditor Goto Github PK
View Code? Open in Web Editor NEWa wrapper of UEditor for vue 2.x
License: MIT License
a wrapper of UEditor for vue 2.x
License: MIT License
我想用你的这个,但是确实不会用,尤其是有些功能,我不需要怎么把它隐藏掉呢?麻烦你能给你完整点的Demo,star越来越多。。。
我现在不知道用哪个对象来调用这个setContent()。你的文档介绍中调用是在,ready事件里调用的。
目前能获取到的都是UE.Editor对象,我想获取到父级的UE对象,怎么办?
Module build failed: Error: Couldn't find preset "state-2" relative to directory
在electron-vue 项目中使用出现
Uncaught SyntaxError: Unexpected identifier
这个要怎么解决呢?
或者说有electron-vue+vue-ueditor的实例吗?
need a placeholder attribute,hope can support
谢谢,给予一下指点
那这个后台要怎么写啊
文件:/src/components/UEditor.vue
<template>
<script :id="randomId" name="content" type="text/plain"></script>
</template>
使用document.getElementById(this.randomId)获取为null。
经测试发现,需要script外面套一层div。
目前暂时退回2.6.10版本
editorInstance这个实例只能在editorReady这个方法里面调用吗?如果我需要在其他methods里面调用editorInstance这个实例能行吗?
Module build failed: Error: Couldn't find preset "es2015" relative to directory
install之后 .babelrc文件里面报transform-runtime,state-2这个错。把这两项配置删了就不报错了。但是别人安装之后也会包这个错。这个要怎么解决了。
DEV下报错:
`Uncaught SyntaxError: Unexpected token import
at Object.<anonymous> (app.js:1327)
at __webpack_require__ (common.js:588)
at fn (common.js:112)
at eval (eval at <anonymous> (app.js:613), <anonymous>:11:19)
at Object.<anonymous> (app.js:613)
at __webpack_require__ (common.js:588)
at fn (common.js:112)
at eval (eval at <anonymous> (app.js:1171), <anonymous>:3:3)
at Object.<anonymous> (app.js:1171)
at __webpack_require__ (common.js:588)`
build的时候报错:
ERROR in static/js/app.d2a0d51b016495b74121.js from UglifyJs SyntaxError: Unexpected token: name (UEditor) [./~/vue-ueditor/src/index.js:1,0]
之前公司的vue
项目开发中需要用到UEditor.
奈何UEditor
操作比较不友好,而且每次通过setContent
,getContent
去操作实例,无疑加重代码量。于是萌发了使用v-model
实现双向绑定的想法。希望可以像使用input框一样使用富文本编辑器。当时在github上看到你的项目,浏览了一下你的源码。颇有启发,但是看到你拒绝的很多关于v-model的PR以及ISSUE。于是决定动手撸一个。最后便有了vue-ueditor-wrap这个组件。
我个人认为:
vue
和UEditor
集成还是很有广泛需求的,而直接的v-model绑定也是很多人期待的方式contenChange
固然有很多问题,但是大部分情景下完全ok的v-model
和用户去操作实例并不冲突关于这项报错。我百度了下。说把chongqing 改成Chongqing还是不行。你有遇到这个问题吗。还是说没有后台导致的。
有一个编辑文章的功能,当我获取到文章相关的数据的时候,调用setContent方法文章内容不显示
代码:
data(){return ueditorObj:{}} editorReady(editorInstance){ const _this = this; _this.ueditorObj = editorInstance; }, getData(res){ _this.ueditorObj.setContent(res.body) }
res.body是已经有数据的
RT,如何给组件增加v-model,里面只是提供了获取html 跟content的方法,如何绑定v-model呢?
富文本框选中后,单图片上传变灰,readme里面的图片上也是这样显示
获取数据的方法如何处理?
ueditor.all.js:1 Uncaught SyntaxError: Unexpected token <
ueditor.config.js:1 Uncaught SyntaxError: Unexpected token <
vue.runtime.esm.js?6e6d:619 [Vue warn]: Error in nextTick: "TypeError: Cannot read property 'getEditor' of undefined"
Error in nextTick: "TypeError: window.UE.getEditor is not a function"
请教下如果要自定义一个按钮,应该在哪个位置开始调用registerUI?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.