Giter Club home page Giter Club logo

aurelia-quill-plugin's People

Contributors

arabsight avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aurelia-quill-plugin's Issues

after making entire text as bold, enter key is not working

Reproduce step

  • Implement editor
  • Select entire text and make it bold/italic
  • Place cursor at the end of the text and press enter
  • Cursor is being moved to the beginning of the text

Expected behavior

  • Just go to next line

More information which could be helpful

  • Even the cursor is not working properly, a new line will be added. I can go to new line with arrow keys/mouse.

Include webpack manual in readme.md

In case of webpack user should:
Add following lines into webpack.config.vendor.js

module.exports = ({ prod } = {}) => {
    const isDevBuild = !prod;
    return [{
...
    entry: {
        vendor: {
....
            'quill',
            'quill/dist/quill.snow.css',
            'aurelia-quill-plugin/dist/amd/'
        }
    }, 
...
    }]
...
};

register plugin

aurelia.use.plugin('aurelia-quill-plugin');

But user user shouldn't import quill.snow.css he/she have to only use quill-editor tag.

bind with value doesn't works

Hi
If you affect a new value to the property bind with quillEditor.value, there is no change in Quill editor. The solution is pretty simple . In quill-editor.js add

valueChanged(newValue) {       
      this.editor.root.innerHTML = newValue;
        
} 

Mutiple controls on form

Hi,
In process of converting kendoui rich text controls and in my evaluations I've chosen quill as I think its the best match for my needs.
If I have one control on form I'm able to extract the html with the following code.

var delta = $('.ql-editor').html();
delta = <h1>John Doe</h1>
  1. Is this the most efficient way to get at the html
  2. How do I extract the html from another instance on the same form.
    Thanks so much for your efforts and documentation.
    John

multiple header is appearing with if.bind

My project is aurelia-cli (webpack)

Reproduce step

Component A:

<template>
   <div>.... <quill-editor></quill-editor> ... </div>
</template>

Parent Component:

<component-a if.bind="show"></component-a>
<button click.delegate="show = !show">Show/Hide</button>

If I try Show/Hide button several times, then quill editor displays headers multiple time,
Looks like only last header is available for actions, if I try buttons from other headers, it does not work.

Screenshot attached:
image

What we need

We may need something like a function to detach or reset the quill editor handler.

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.