Skip to content

Commit 994888a

Browse files
committed
Delete ssr files & update document
1 parent abe7437 commit 994888a

File tree

6 files changed

+30
-345
lines changed

6 files changed

+30
-345
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
### Example
2020

2121
- [Component example page](https://surmon-china.github.io/vue-quill-editor/)
22-
- [CDN example page](https://jsfiddle.net/tng9r8j3/)
22+
- [CDN example page](https://jsfiddle.net/surmon/fpojgkmy/)
2323

2424

2525
### Install
@@ -28,6 +28,9 @@
2828

2929
``` bash
3030
npm install vue-quill-editor --save
31+
32+
# or
33+
yarn add vue-quill-editor
3134
```
3235

3336
**CDN**

dist/ssr.js

Lines changed: 0 additions & 144 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@
3838
"vue editor"
3939
],
4040
"scripts": {
41-
"build:spa": "cross-env NODE_ENV=production webpack --config config/build.conf.js",
42-
"build:ssr": "babel src/ssr.js --out-file dist/ssr.js",
43-
"build": "npm run build:spa && npm run build:ssr",
41+
"build": "cross-env NODE_ENV=production webpack --config config/build.conf.js",
4442
"unit": "cross-env BABEL_ENV=test NODE_ENV=testing karma start test/unit/karma.conf.js --watch",
4543
"test": "cross-env BABEL_ENV=test NODE_ENV=testing karma start test/unit/karma.conf.js --single-run",
4644
"lint": "eslint --ext .js,.vue src test/unit/specs",

src/editor.vue

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,32 @@
88
<script>
99
// require sources
1010
import _Quill from 'quill'
11-
import defaultOptions from './options'
11+
1212
const Quill = window.Quill || _Quill
13+
const defaultOptions = {
14+
theme: 'snow',
15+
boundary: document.body,
16+
modules: {
17+
toolbar: [
18+
['bold', 'italic', 'underline', 'strike'],
19+
['blockquote', 'code-block'],
20+
[{ 'header': 1 }, { 'header': 2 }],
21+
[{ 'list': 'ordered' }, { 'list': 'bullet' }],
22+
[{ 'script': 'sub' }, { 'script': 'super' }],
23+
[{ 'indent': '-1' }, { 'indent': '+1' }],
24+
[{ 'direction': 'rtl' }],
25+
[{ 'size': ['small', false, 'large', 'huge'] }],
26+
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
27+
[{ 'color': [] }, { 'background': [] }],
28+
[{ 'font': [] }],
29+
[{ 'align': [] }],
30+
['clean'],
31+
['link', 'image', 'video']
32+
]
33+
},
34+
placeholder: 'Insert text here ...',
35+
readOnly: false
36+
}
1337
1438
// pollfill
1539
if (typeof Object.assign != 'function') {

src/options.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)