Frustrating even to get started, document needs improving to make quill user not painful
See original GitHub issueSome complaints before my problem:
1.Too much talk in document. (Please show more code, give a look to tinymce
editor’s document or any other well known editor’s documents)
2.Frustrating to get started. (Can u just give a simple example for people to get start, and show the full options to let people play around and show some awesome third party modules for developers to enjoy, in the homepage or in the README.md page?)
Here is how I get started:
In terminal:
npm install quill -S
In Vue file:
<template>
<div class="editor-container">
<div id="toolbar"></div>
<div id="editor_id"></div>
</div>
</template>
<script>
import Quill from 'quill'
export default {
...
methods: {
initEditor() {
const dom = document.getElementById(this.editor_id)
console.log(dom)
var editor = new Quill(dom, {
modules: {
toolbar: '#toolbar'
},
placeholder: '请输入内容...',
theme: 'snow'
});
}
}
...
}
</script>
I know there is something that quill required missing in my code.
But I cannot find a place to know what do I missing. there is no get started example in your official site or your document to show which to require
except Quill
So I guess the style might need require
separately, So I searched, and found this:
import Quill from 'quill'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
After I import
these css, the style changed a little bit. But still not what I want, the toolbar is missing, and the style is wrong.
Six month ago, a frontend intern in our company use quill
, I found it painful to solve a simple problem.(document).
I really don’t know why quill get so many star on github
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
I suggest give reference link in every of your codepen demo. So people who see the demo useful will get to the reference immediately instead of searching and finding in you official navigation-not-well-designed document.
And most importantly, please make doc detailed, have full list option of every feature, or just open source your offcial website, so people can submit to detail it. thx
Sure I will try