arabsight / aurelia-quill-plugin Goto Github PK
View Code? Open in Web Editor NEWA Quill editor wrapper for Aurelia.
License: MIT License
A Quill editor wrapper for Aurelia.
License: MIT License
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.
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;
}
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>
My project is aurelia-cli (webpack)
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.
We may need something like a function to detach or reset the quill editor handler.
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.