Skip to content

Commit 14e6497

Browse files
author
Bizley
committed
Merge branch 'update'
2 parents ad8e1cb + a8cb462 commit 14e6497

File tree

8 files changed

+183
-141
lines changed

8 files changed

+183
-141
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
/nbproject/
1+
nbproject
2+
.idea
3+
vendor
4+
composer.lock

LICENSE

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -175,28 +175,4 @@
175175

176176
END OF TERMS AND CONDITIONS
177177

178-
APPENDIX: How to apply the Apache License to your work.
179-
180-
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "{}"
182-
replaced with your own identifying information. (Don't include
183-
the brackets!) The text should be enclosed in the appropriate
184-
comment syntax for the file format. We also recommend that a
185-
file or class name and description of purpose be included on the
186-
same "printed page" as the copyright notice for easier
187-
identification within third-party archives.
188-
189-
Copyright {yyyy} {name of copyright owner}
190-
191-
Licensed under the Apache License, Version 2.0 (the "License");
192-
you may not use this file except in compliance with the License.
193-
You may obtain a copy of the License at
194-
195-
http://www.apache.org/licenses/LICENSE-2.0
196-
197-
Unless required by applicable law or agreed to in writing, software
198-
distributed under the License is distributed on an "AS IS" BASIS,
199-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200-
See the License for the specific language governing permissions and
201-
limitations under the License.
202-
178+
Copyright 2018 Paweł Bizley Brzozowski

README.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# yii2-quill
22

33
![Latest Stable Version](https://img.shields.io/packagist/v/bizley/quill.svg)
4-
![Total Downloads](https://img.shields.io/packagist/dt/bizley/quill.svg)
4+
[![Total Downloads](https://img.shields.io/packagist/dt/bizley/quill.svg)](https://packagist.org/packages/bizley/quill)
55
![License](https://img.shields.io/packagist/l/bizley/quill.svg)
66

77
*Yii 2 implementation of Quill, modern WYSIWYG editor.*
@@ -18,22 +18,26 @@ You can find Quill at https://quilljs.com/
1818

1919
### Installation
2020

21-
Easiest way to install this extension is through the [Composer](https://getcomposer.org).
22-
Add in your `composer.json`:
23-
`"bizley/quill": "^2.0"`
24-
or run console command:
25-
`php composer.phar require "bizley/quill ^2.0"`
21+
Add the package to your `composer.json`:
2622

27-
If you want to install Quill beta version add:
28-
`"bizley/quill": "^1.0"`
23+
{
24+
"require": {
25+
"bizley/quill": "^2.0"
26+
}
27+
}
28+
29+
and run `composer update` or alternatively run `composer require bizley/quill:^2.1`
2930

3031
### Usage
3132

3233
Use it as an active field extension
33-
`<?= $form->field($model, $attribute)->widget(\bizley\quill\Quill::className(), []) ?>`
3434

35-
or as a standalone widget
36-
`<?= \bizley\quill\Quill::widget(['name' => 'editor', 'value' => '']) ?>`
35+
<?= $form->field($model, $attribute)->widget(\bizley\quill\Quill::class, []) ?>
36+
37+
Or as a standalone widget
38+
39+
<?= \bizley\quill\Quill::widget(['name' => 'editor', 'value' => '']) ?>
40+
3741

3842
### Basic parameters
3943

@@ -74,8 +78,6 @@ add the following code in widget configuration:
7478
],
7579
```
7680

77-
Toolbar configuration for previous yii2-quill version (**^1.0** with Quill *beta*) is deprecated.
78-
7981
## Additional information
8082

8183
### Container and form's input
@@ -121,9 +123,9 @@ To add this option configure widget with [Formula module](https://quilljs.com/do
121123
```php
122124
[
123125
'modules' => [
124-
'formula' => true // Include formula module
126+
'formula' => true, // Include formula module
125127
],
126-
'toolbarOptions' => [['formula']] // Include button in toolbar
128+
'toolbarOptions' => [['formula']], // Include button in toolbar
127129
]
128130
```
129131

@@ -137,7 +139,7 @@ To add this option configure widget with [Syntax Highlighter module](https://qui
137139
```php
138140
[
139141
'modules' => [
140-
'syntax' => true // Include syntax module
142+
'syntax' => true, // Include syntax module
141143
],
142144
'toolbarOptions' => [['code-block']] // Include button in toolbar
143145
]

composer.json

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
{
2-
"name": "bizley/quill",
3-
"description": "Quill editor implementation for Yii 2.",
4-
"type": "yii2-extension",
5-
"keywords": [
6-
"yii2",
7-
"quill",
8-
"wysiwyg",
9-
"widget",
10-
"editor"
11-
],
12-
"license": "Apache-2.0",
13-
"authors": [
14-
{
15-
"name": "Pawel Bizley Brzozowski",
16-
"email": "[email protected]"
17-
}
18-
],
19-
"support": {
20-
"source": "https://github.com/bizley/yii2-quill"
21-
},
22-
"require": {
23-
"yiisoft/yii2": "^2.0.0"
24-
},
25-
"autoload": {
26-
"psr-4": {
27-
"bizley\\quill\\": ""
28-
}
2+
"name": "bizley/quill",
3+
"description": "Quill editor implementation for Yii 2.",
4+
"type": "yii2-extension",
5+
"keywords": ["yii2","quill","wysiwyg","widget","editor"],
6+
"license": "Apache-2.0",
7+
"authors": [
8+
{
9+
"name": "Pawel Bizley Brzozowski",
10+
"email": "[email protected]"
2911
}
12+
],
13+
"support": {
14+
"source": "https://github.com/bizley/yii2-quill"
15+
},
16+
"require": {
17+
"php": ">=7.0",
18+
"yiisoft/yii2": ">=2.0.0 <2.1.0"
19+
},
20+
"require-dev": {
21+
"roave/security-advisories": "dev-master"
22+
},
23+
"autoload": {
24+
"psr-4": {
25+
"bizley\\quill\\": "src/"
26+
}
27+
},
28+
"repositories": [
29+
{
30+
"type": "composer",
31+
"url": "https://asset-packagist.org"
32+
}
33+
]
3034
}

0 commit comments

Comments
 (0)