Giter Site home page Giter Site logo

surmon-china / vue-quill-editor Goto Github PK

View Code? Open in Web Editor NEW
7.4K 111.0 1.0K 643 KB

@quilljs editor component for @vuejs(2)

Home Page: https://github.surmon.me/vue-quill-editor

License: MIT License

Vue 9.27% JavaScript 90.73%
vue vue-quill-editor quill editor vue-components vuejs vuejs2 vue-component vue2 editor-plugin

vue-quill-editor's Introduction

vue-quill-editor

vue   GitHub stars   GitHub issues   npm   license

Quill editor component for Vue(2).


DEPRECATED ‼️

Unfortunately, since the Quill project has effectively stopped being maintained, vue-quill-editor will be DEPRECATED and will no longer support Vue3; if you're looking for a rich text editor, I recommend migrating to tiptap, which is a much better alternative.

If Quill ever updates v2.0, this project will probably continue to be updated as well. I encourage folks to fork this repository and, if a fork gets popular, I will link to it in this README.

The stalled Quill project can be found in these issues:


Example

Documentation

Install

NPM

npm install vue-quill-editor --save
yarn add vue-quill-editor

CDN

<link rel="stylesheet" href="path/to/quill.core.css"/>
<link rel="stylesheet" href="path/to/quill.snow.css"/>
<link rel="stylesheet" href="path/to/quill.bubble.css"/>
<script type="text/javascript" src="path/to/quill.js"></script>
<script type="text/javascript" src="path/to/vue.min.js"></script>
<script type="text/javascript" src="path/to/dist/vue-quill-editor.js"></script>
<script type="text/javascript">
  Vue.use(window.VueQuillEditor)
</script>

Usage

Global component

import Vue from 'vue'
import VueQuillEditor from 'vue-quill-editor'

import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme

Vue.use(VueQuillEditor, /* { default global options } */)

Local component

import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

import { quillEditor } from 'vue-quill-editor'

export default {
  components: {
    quillEditor
  }
}

SSR component

See Nuxt.js example code.

Register Quill module

import Quill from 'quill'
import yourQuillModule from '../yourModulePath/yourQuillModule.js'
Quill.register('modules/yourQuillModule', yourQuillModule)

// Vue app...

Component

<template>
  <!-- Two-way Data-Binding -->
  <quill-editor
    ref="myQuillEditor"
    v-model="content"
    :options="editorOption"
    @blur="onEditorBlur($event)"
    @focus="onEditorFocus($event)"
    @ready="onEditorReady($event)"
  />

  <!-- Or manually control the data synchronization -->
  <quill-editor
    :content="content"
    :options="editorOption"
    @change="onEditorChange($event)"
  />
</template>

<script>
  // You can also register Quill modules in the component
  import Quill from 'quill'
  import someModule from '../yourModulePath/someQuillModule.js'
  Quill.register('modules/someModule', someModule)
  
  export default {
    data () {
      return {
        content: '<h2>I am Example</h2>',
        editorOption: {
          // Some Quill options...
        }
      }
    },
    methods: {
      onEditorBlur(quill) {
        console.log('editor blur!', quill)
      },
      onEditorFocus(quill) {
        console.log('editor focus!', quill)
      },
      onEditorReady(quill) {
        console.log('editor ready!', quill)
      },
      onEditorChange({ quill, html, text }) {
        console.log('editor change!', quill, html, text)
        this.content = html
      }
    },
    computed: {
      editor() {
        return this.$refs.myQuillEditor.quill
      }
    },
    mounted() {
      console.log('this is current quill instance object', this.editor)
    }
  }
</script>

Issues

Quill Modules

Changelog

Detailed changes for each release are documented in the release notes.

License

Licensed under the MIT License.

vue-quill-editor's People

Contributors

2pacalypse- avatar aral avatar d3radicated avatar georgeromedev avatar iwanabethatguy avatar mahnouman avatar romick2005 avatar ryoheitomiyama avatar silverbackdan avatar surmon-china avatar torvaldssg avatar v-stein avatar vkaracic 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  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

vue-quill-editor's Issues

图片存储问题

集成的很不错~
我看到quill上是以base64自动存储在客户端
我后端该如何接受这张图片 目前直接接受经过base64后转码的字符串 但是再直接返回到客户端的时候就不能正常显示了.

是否可以直接给图标加title属性

中文用户请注意:

  1. issue 只接受带重现的 bug 报告,请不要用来提问题!不符合要求的 issue 会被直接关闭。
  2. 请尽量用英文描述你的 issue,这样能够让尽可能多的人帮到你。

Got a question?

Reporting a bug?

  • Try to search for your issue, it may have already been answered or even fixed in the development branch.

  • It is required that you clearly describe the steps necessary to reproduce the issue you are running into. Issues with no clear repro steps will not be triaged. If an issue labeled "need repro" receives no further input from the issue author for more than 5 days, it will be closed.

  • It is recommended that you make a JSFiddle/JSBin/Codepen to demonstrate your issue. You could start with this template that already includes the latest version of Vue.

  • For potential SSR (Server Side Rendering) issue or bugs that involves build setups, you can create a reproduction repository with steps in the README.

  • If your issue is resolved but still open, don’t hesitate to close it. In case you found a solution by yourself, it could be helpful to explain how you fixed it.

Have a feature request?

  • Remove the template from below and provide thoughtful commentary and code samples on what this feature means for your product. What will it allow you to do that you can't do today? How will it make current work-arounds straightforward? What potential bugs and edge cases does it help to avoid? etc. Please keep it product-centric.

BUG REPORT TEMPLATE

Vue.js version and component version

Reproduction Link

  • A minimal JSBin, JSFiddle, Codepen, or a GitHub repository that can reproduce the bug.
  • You could start with this template: https://jsfiddle.net/39epgLj0/

Steps to reproduce

What is Expected?

What is actually happening?

【BUG】cannot destroy toolbar

I found the toolbar has not been destoryed automaticly when i used it with vue2.

And i found the solution.

firstly, change the template to

<div class="quill-editor"><div></div></div>

secondly, change the instance of Quill which is defined in line 67:

self.quill = new Quill(self.$el.childNodes[0], self.options)

Now this problem is solved

我结合vue-router每次切换路由的时候都会新增一个editor!这个如何解决

代码:

<template lang="html">
  <!-- use with components - bidirectional data binding(双向数据绑定) -->
  <div class="">
    <quill-editor ref="myTextEditor"
                  v-model="content"
                  :config="editorOption"
                  @blur="onEditorBlur($event)"
                  @focus="onEditorFocus($event)"
                  @ready="onEditorReady($event)">
    </quill-editor>
  </div>
</template>

<script>
// import with ES6
import Vue from 'vue'
import VueQuillEditor from 'vue-quill-editor'
// use
Vue.use(VueQuillEditor)
// editor option example:
export default {
  data () {
    return {
      content: '<h2>I am Example</h2>',
      editorOption: {
       // something config
      }
    }
  },
  // if you need to manually control the data synchronization, parent component needs to explicitly emit an event instead of relying on implicit binding
  // 如果需要手动控制数据同步,父组件需要显式地处理changed事件
  methods: {
    onEditorBlur(editor) {
      console.log('editor blur!', editor)
    },
    onEditorFocus(editor) {
      console.log('editor focus!', editor)
    },
    onEditorReady(editor) {
      console.log('editor ready!', editor)
    },
    onEditorChange({ editor, html, text }) {
      // console.log('editor change!', editor, html, text)
      this.content = html
    }
  },
  // if you need to get the current editor object, you can find the editor object like this, the $ref object is a ref attribute corresponding to the dom redefined
  // 如果你需要得到当前的editor对象来做一些事情,你可以像下面这样定义一个方法属性来获取当前的editor对象,实际上这里的$refs对应的是当前组件内所有关联了ref属性的组件元素对象
  computed: {
    editor() {
      return this.$refs.myTextEditor.quillEditor
    }
  },
  mounted() {
    // you can use current editor object to do something(editor methods)
    console.log('this is my editor', this.editor)
    // this.editor to do something...
  }
}
</script>

<style lang="css">
</style>

不兼容IE

在IE10中报错,[Parchment] Invalid definition

I get the quill instance and add an ImageHandler,but work incorrect

I am using vue2.0,
I get the quill instance, and then add an imageHandler, it is expected accept two params(image,callback),but in fact only one with value true.
here is my code in method mounted()

this.$refs.newEditor.quill.getModule("toolbar").addHandler("image", imageHandler)

Module parse error: node_modules\quill\dist\quill.snow.css Unexpected token (7:0)

Why am I getting this error? I'm using default laravel 5.3 setup

Module parse failed: C:\laragon\www\projectname\node_modules\quill\dist\quill.snow.css Unexpected token (1:0) You may need an appropriate loader to handle this file type. | .ql-container { | box-sizing: border-box; | font-family: Helvetica, Arial, sans-serif; @ ./~/buble-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./~/vue-quill-editor/editor.vue 6:0-36 @ ./~/vue-quill-editor/editor.vue @ ./~/vue-quill-editor/index.js @ ./assets/src/js/admin/main.js./~/quill/dist/quill.bubble.css

How to enable only specified formats?

Hey,

First of all, I'm pretty new to all of this, so excuse me if this is obvious...

How do I allow only specified formats in the Quill editor? For example binding the quillEditor to options data object with formats: ['italic'] gives me warnings on console

quill:toolbar ignoring attaching to disabled format bold <button type=​"button" class=​"ql-bold">​…​</button>​

It does nothing beyond that.

Need help to set some tricks

Hi, You have a nice project!

But I need help to set some tricks:

  • I want all pasted text to be in plain text
  • I want all links to be converted in HTML links
  • If possible, I want to translate the interface to my language

Thanks!

Webpack: Module build failed

I'm using laravel-mix to build my files. I updated to the recent version and encountered this error while building.

Module build failed: Error: Couldn't find preset "es2015" relative to directory "C:\\Work\\XXX\\node_modules\\vue-quill-editor"
    at C:\Work\XXX\node_modules\babel-core\lib\transformation\file\options\option-manager.js:293:19
    at Array.map (native)
    at OptionManager.resolvePresets (C:\Work\XXX\node_modules\babel-core\lib\transformation\file\options\option-manager.js:275:20)
    at OptionManager.mergePresets (C:\Work\XXX\node_modules\babel-core\lib\transformation\file\options\option-manager.js:264:10)
    at OptionManager.mergeOptions (C:\Work\XXX\node_modules\babel-core\lib\transformation\file\options\option-manager.js:249:14)
    at OptionManager.init (C:\Work\XXX\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
    at File.initOptions (C:\Work\XXX\node_modules\babel-core\lib\transformation\file\index.js:212:65)
    at new File (C:\Work\XXX\node_modules\babel-core\lib\transformation\file\index.js:135:24)
    at Pipeline.transform (C:\Work\XXX\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
    at transpile (C:\Work\XXX\node_modules\babel-loader\lib\index.js:46:20)
    at C:\Work\XXX\node_modules\babel-loader\lib\fs-cache.js:79:18
    at ReadFileContext.callback (C:\Work\XXX\node_modules\babel-loader\lib\fs-cache.js:15:14)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:358:13)

 @ ./~/vue-quill-editor/src/editor.vue 7:2-214
 @ ./~/vue-quill-editor/src/index.js
 @ ./resources/assets/control-panel/app.js
 @ multi ./resources/assets/control-panel/app.js

Deleting .babelrc seems to solve the issue.

win10不兼容

安装信息:
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]

浏览器信息:
Uncaught ReferenceError: quillEditor is not defined
at Object.install (eval at (build.js:2526), :12:35)
at Function.Vue.use (eval at (build.js:1058), :3433:22)
at eval (eval at (build.js:1986), :38:15)
at Object. (build.js:1986)
at webpack_require (build.js:556)
at fn (build.js:87)
at Object. (build.js:588)
at webpack_require (build.js:556)
at build.js:579
at build.js:582

有解决办法吗?

Cannot load components ReferenceError: eventEmit is not defined (SSR)

I'm trying to get the editor to work in an electron app and followed along with the example in /nuxt-ssr-example, but I'm getting the error:

Cannot load components ReferenceError: eventEmit is not defined

for every interaction.

I've created a repo using electronuxt which is just a basic starter app for nuxt.

Vue.js version and component version

I'm using vue-quill-editor 2.0.3 and nuxt 0.10.5

Reproduction Link

https://github.com/PeterKnight/quilltest

Steps to reproduce

Install the project with npm, load it with npm run dev, you should see the editor pop up ok but any interaction with the editor results in errors showing in the console.

What is Expected?

For editor events to work properly

What is actually happening?

eventEmit not defined errors

Webpack Build CSS Error

Trying to add this to my Laravel app (using Elixir) and I get this build error whenever webpack compiles:

Uncaught SyntaxError: Unexpected token .(…) quill.snow.css?83dc:7

It looks like it may be related to this. Does anyone have a solution for this? It is breaking my build.

自定义工具栏如何在原有工具栏基础上增加?

如果要修改自带的工具栏 或者 自定义新增一个工具 如何去做呢?
看文档 试验了一下, 自定义工具栏就要把自带的删掉 ,
然后又把自定义的工具写在组件里面 ,引入组件放在toolbar 数组里面 加载模块有问题 不知道格式要怎么写?
希望作者给个做自定义工具的建议或方法!

image如何上传服务器并插入editor

中文用户请注意:

  1. issue 只接受带重现的 bug 报告,请不要用来提问题!不符合要求的 issue 会被直接关闭。
  2. 请尽量用英文描述你的 issue,这样能够让尽可能多的人帮到你。
  3. 这里不是论坛不是贴吧,是针对问题本身的讨论区,不接受任何问题之外的东西。
  4. 在提出问题前,请仔细阅读REMADE.md并在已关闭的问题中寻找与自身相关的问题,它极有可能已经被解决。
  5. 问题请严格按照以下模板BUG REPORT TEMPLATE编写,禁止在标题中堆砌!

Got a question?

Reporting a bug?

  • Try to search for your issue, it may have already been answered or even fixed in the development branch.

  • It is required that you clearly describe the steps necessary to reproduce the issue you are running into. Issues with no clear repro steps will not be triaged. If an issue labeled "need repro" receives no further input from the issue author for more than 5 days, it will be closed.

  • It is recommended that you make a JSFiddle/JSBin/Codepen to demonstrate your issue. You could start with this template that already includes the latest version of Vue.

  • For potential SSR (Server Side Rendering) issue or bugs that involves build setups, you can create a reproduction repository with steps in the README.

  • If your issue is resolved but still open, don’t hesitate to close it. In case you found a solution by yourself, it could be helpful to explain how you fixed it.

Have a feature request?

  • Remove the template from below and provide thoughtful commentary and code samples on what this feature means for your product. What will it allow you to do that you can't do today? How will it make current work-arounds straightforward? What potential bugs and edge cases does it help to avoid? etc. Please keep it product-centric.

BUG REPORT TEMPLATE

Vue.js version and component version

Reproduction Link

  • A minimal JSBin, JSFiddle, Codepen, or a GitHub repository that can reproduce the bug.
  • You could start with this template: https://jsfiddle.net/39epgLj0/

Steps to reproduce

What is Expected?

What is actually happening?

Placeholder

Hi,

Using the latest version of this package.
I have an issue with the placeholder. I placed the options into a computed property and when I change the placeholder it doesn't seem to change. The options are changed when I inspect the element but it doesn't actually change the placeholder on the front-end.

My situation is that when I change languages in my edit screen, I turn the old content into the placeholder.

To illustrate what I mean:

schermafbeelding 2017-05-16 om 14 38 19

Note the actual placeholder "Default message" and the placeholder as seen in the props.

Can you fix it so that it keeps watching the placeholder?

在ios中无法输入

我在ydui中使用这编辑,但是在ios不能输入,不出现光标,但是能弹出输入法,打的字无法输入到编辑器里,Android倒是正常。我用的是iphone7 IOS 10.3.2

change event not fired

I'm using nuxt and ssr and I tried to wrap vue-quill-editor in my own Editor.vue. Everything works fine(including ready focus blur events), except that change has no effect at all. Here's the Editor.vue file:

<template>
  <div class="quill-editor" 
      :content="content" 
      @change="onEditorChange($event)" 
      @blur="onEditorBlur($event)" 
      @focus="onEditorFocus($event)" 
      @ready="onEditorReady($event)" 
      v-quill:myQuillEditor="editorOption">
  </div>
</template>

<script>
export default {
  model: {
    prop: 'content',
    event: 'contentchange'
  },

  props: {
    content: String,
    placeholder: String
  },

  data() {
    return {
      editorOption: {
        theme: 'snow',
        placeholder: this.placeholder,
        modules: {
          toolbar: [
            ['bold', 'italic', 'underline', 'strike'],
            ['blockquote', 'code-block', { list: 'bullet' }],
            [{ size: ['small', false, 'large', 'huge'] }, { color: [] }, { align: [] }],
            ['link', 'image']
          ]
        }
      }
    }
  },

  methods: {
    onEditorBlur(editor) {
      console.log('editor blur!', editor)
    },
    onEditorFocus(editor) {
      console.log('editor focus!', editor)
    },
    onEditorReady(editor) {
      console.log('editor ready!', editor)
    },
    onEditorChange({ editor, html, text }) {
      console.log('editor change!', editor, html, text)
      // this.content = html
      this.$emit('contentchange', html)
    }
  }
}
</script>

<style lang="stylus">
@require '~assets/css/theme.styl'

.ql-toolbar
  background-color: white
.ql-toolbar + .ql-container
  background-color: white
  color: grey(1)
  font-size: $fs-2
</style>

As you can see, when I type...
2017-05-08 8 34 02

in console:
2017-05-08 8 34 12

No sync between the :content and the data

It is a bug

BUG REPORT TEMPLATE

when we enter text in editor it is not reflected in the data attached to :content

Reproduction Link

Steps to reproduce

same steps as his.
after opening the app, add <div v-text="content"></div> after his code, then in app clear the editor untill you see the placeholder and enter text again.

What is Expected?

The change in editor should reflect in the div below.

What is actually happening?

no change in the div with v-text
in my situation it is not working from the start.
The content changes if we change the content using v-model with an input, but the reverse is not happening

'Uncaught ReferenceError: quillEditor is not defined

Not compatible with new Vue loader or something like that? Crashed after last vue update.

This is particular code giving error:
Vue.component('quill-editor', quillEditor)

from index of your module:

window.Quill = require('quill/dist/quill.js')
const quillEditor = require('./editor.vue')
const VueQuillEditor = {
  Quill: Quill,
  quillEditor: quillEditor,
  install: function(Vue) {
    Vue.component('quill-editor', quillEditor)
  }
}

module.exports = VueQuillEditor

Complete error:

Uncaught ReferenceError: quillEditor is not defined
    at Object.install (eval at <anonymous> (app.js:2775), <anonymous>:12:35)
    at Function.Vue.use (eval at <anonymous> (app.js:629), <anonymous>:3450:22)
    at eval (eval at <anonymous> (app.js:2029), <anonymous>:64:15)
    at Object.<anonymous> (app.js:2029)
    at __webpack_require__ (app.js:556)
    at fn (app.js:87)
    at Object.<anonymous> (app.js:610)
    at __webpack_require__ (app.js:556)
    at app.js:579
    at app.js:582

You may need an appropriate loader to handle this file type.

ERROR in ./~/.npminstall/vue-quill-editor/1.0.0/vue-quill-editor/editor.vue Module parse failed: /Users/sid/Documents/Project/git/garage-cms-font/node_modules/.npminstall/vue-quill-editor/1.0.0/vue-quill-editor/editor.vue Unexpected token (1:0) You may need an appropriate loader to handle this file type. SyntaxError: Unexpected token (1:0)

Doesn't work in Vue 2.2+

I believe it's because Vue 2.2 has changed to ES6 style imports, so when you're requiring the editor.vue, it's breaking.

Changing to import quillEditor from './editor.vue' or var quillEditor = require('./editor.vue').default in Vue 2.2 works.

blur失效问题

blur失效一般是什么问题,导致了想点击改变字体大小出问题,因为点击normal是focuse而不是blur,麻烦作者看一下

How vue-quill-editor combine with the syntax highlighter module of highlight.js

As the document of quill said, I add the highlight.js in my page.Well, no matter where I put the library in my html file, it always run out with the issue: Error: Syntax module requires highlight.js. Please include the library on the page before Quill., I searched a lot, but with no luck. Sorry, I know here isn't the place to ask question like that, but I really couldn't figure out how to solve this. So if anyone knows solutions about that, any suggestion will be appreciated, Thx.

Is there anyway to separate components between toolbox and text editor?

Is there anyway to separate components between toolbox and text editor?

I'm trying something as following below, but it won't works

template

  <div ref="toolbar">
    <button class="ql-bold">Bold</button>
    <button class="ql-italic">Italic</button>
  </div>

script

editorOption: {
  modules: { toolbar: this.$refs.toolbar }
}

Add support for server-side rendering

Right now, when using your component, I receive this error ReferenceError: document is not defined. Can you add support for server-side rendering?

安装印象笔记chrome插件后,出现bug

安装印象笔记的剪藏插件后输入中文,然后点击粗体(或斜体等),再删除,会出现不能删除的bug。
这是quill这个库的一个问题,不能叫bug吧,因为作者表示这是插件的问题。
但是剪藏插件在**的安装量还是很可观的,所以这个库如此的棒,因为这个小问题让我没办法用到生产环境,一直饮恨。
所以反应给你,看你有没有解决办法

Inline formatting not working

Bold and Italic Formatting are not working, but the rest are working fine and also the html output is correct Output

Please help. Thanks!

报错:You may need an appropriate loader to handle this file type.

引用报这个错误:
ERROR in ./~/vue-quill-editor/editor.vue
Module parse failed: G:\catWork\CaseCollections-admin\node_modules\vue-quill-editor\editor.vue Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (1:0)

webpack里有对.vue的处理:
{test: /.vue$/, loader: 'vue', include: path.join(__dirname, 'src')}

关于设置:disabled="true"无效的bug

开发中遇到的问题,暂无示例代码
props 中添加的有对 disabled 的传值,watch disabled的时候也对 this.quill 作了判断,当页面代码比较复杂的时候,创建编辑器是需要花费一些时间,有可能还未创建成功时,针对disabledwatch已经触发,就无法在默认渲染时控制编辑器是否可用。

我的想法,emit ready事件的时候,再重新设置一下disabled的值

self.$emit('ready', self.quill)
self.quill.enable(!this.disabled)
由于设置props无用,我在@ready里可以控制编辑器的disabled ,是可以正常启作用的:)

Unknown custom element: <md-card>

I used the global setting. The chrome console print
Chrome console
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

main.js
import Vue from 'vue'
import router from './router'
import VueResource from 'vue-resource'
import vuexStore from './store/store'
import VueQuillEditor from 'vue-quill-editor'
import App from './App'

Vue.use(VueQuillEditor)

new Vue({
el: '#app',
router: router,
store: vuexStore,
template: '',
components: { App }
})

大量图片base64储存问题

是否可以图片上传获取url,然后设置图片的显示。而不是直接使用base64,这样后端可能储存会有大量的数据。

Found a bug, please help to have a look at the building Lord, is the picture of the scaling function, not only on the left side of the two points can't zoom in, and click on the image disappears 发现一个bug请楼主帮忙看一下,就是图片的缩放功能,左边的两个点不但不能缩放,而且一点击图片就消失了

中文用户请注意:

  1. issue 只接受带重现的 bug 报告,请不要用来提问题!不符合要求的 issue 会被直接关闭。
  2. 请尽量用英文描述你的 issue,这样能够让尽可能多的人帮到你。

Got a question?

Reporting a bug?

  • Try to search for your issue, it may have already been answered or even fixed in the development branch.

  • It is required that you clearly describe the steps necessary to reproduce the issue you are running into. Issues with no clear repro steps will not be triaged. If an issue labeled "need repro" receives no further input from the issue author for more than 5 days, it will be closed.

  • It is recommended that you make a JSFiddle/JSBin/Codepen to demonstrate your issue. You could start with this template that already includes the latest version of Vue.

  • For potential SSR (Server Side Rendering) issue or bugs that involves build setups, you can create a reproduction repository with steps in the README.

  • If your issue is resolved but still open, don’t hesitate to close it. In case you found a solution by yourself, it could be helpful to explain how you fixed it.

Have a feature request?

  • Remove the template from below and provide thoughtful commentary and code samples on what this feature means for your product. What will it allow you to do that you can't do today? How will it make current work-arounds straightforward? What potential bugs and edge cases does it help to avoid? etc. Please keep it product-centric.

BUG REPORT TEMPLATE

Vue.js version and component version

Reproduction Link

  • A minimal JSBin, JSFiddle, Codepen, or a GitHub repository that can reproduce the bug.
  • You could start with this template: https://jsfiddle.net/39epgLj0/

Steps to reproduce

What is Expected?

What is actually happening?

图片上传问题

图片上传问题。

  1. 我可以定制图片上传的路径
  2. 可以不使用base64位图片么?
  3. 有提供定制化接口么?

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.