Giter Club home page Giter Club logo

vue-ueditor's People

Contributors

silenttiger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-ueditor's Issues

如何给组件增加v-model

RT,如何给组件增加v-model,里面只是提供了获取html 跟content的方法,如何绑定v-model呢?

setContent()无效,内容不显示

有一个编辑文章的功能,当我获取到文章相关的数据的时候,调用setContent方法文章内容不显示

代码:
data(){return ueditorObj:{}} editorReady(editorInstance){ const _this = this; _this.ueditorObj = editorInstance; }, getData(res){ _this.ueditorObj.setContent(res.body) }
res.body是已经有数据的

editorInstance调用问题

editorInstance这个实例只能在editorReady这个方法里面调用吗?如果我需要在其他methods里面调用editorInstance这个实例能行吗?

vue 2.6.11 报错

文件:/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版本

按照教程出现错误

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]

图片无法上传

富文本框选中后,单图片上传变灰,readme里面的图片上也是这样显示

electron-vue中该如何使用ueditor?

在electron-vue 项目中使用出现
Uncaught SyntaxError: Unexpected identifier
这个要怎么解决呢?
或者说有electron-vue+vue-ueditor的实例吗?

如何获取UE对象?

目前能获取到的都是UE.Editor对象,我想获取到父级的UE对象,怎么办?

能否给一个使用的例子?

我想用你的这个,但是确实不会用,尤其是有些功能,我不需要怎么把它隐藏掉呢?麻烦你能给你完整点的Demo,star越来越多。。。

关于vue-ueditor的一些想法

之前公司的vue项目开发中需要用到UEditor.奈何UEditor操作比较不友好,而且每次通过setContent,getContent去操作实例,无疑加重代码量。于是萌发了使用v-model实现双向绑定的想法。希望可以像使用input框一样使用富文本编辑器。当时在github上看到你的项目,浏览了一下你的源码。颇有启发,但是看到你拒绝的很多关于v-model的PR以及ISSUE。于是决定动手撸一个。最后便有了vue-ueditor-wrap这个组件。
我个人认为:

  1. vueUEditor集成还是很有广泛需求的,而直接的v-model绑定也是很多人期待的方式
  2. contenChange固然有很多问题,但是大部分情景下完全ok的
  3. v-model和用户去操作实例并不冲突
    所以希望你可以一种包容的心态看待这个问题,由于我个人能力也比较有限,所以也非常期待你的意见和建议

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.