Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
feat(): custom toolbar position
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerCodeMonkey committed Jan 8, 2019
1 parent f650324 commit 5b3decf
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 168 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Recommended Usage
</ng-quill-toolbar>
</ng-quill-editor>
```
- customToolbarPosition - if you are working with a custom toolbar you can switch the position :). - default: `top`, possible values `top`, `bottom`

**[Full Quill Toolbar HTML](https://github.com/quilljs/quill/blob/f75ff2973f068c3db44f949915eb8a74faf162a8/docs/_includes/full-toolbar.html)**

Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngQuill",
"version": "4.0.1",
"version": "4.1.0",
"main": ["src/ng-quill.js"],
"description": "AngularJS directive for the QuillJS rich text editor",
"authors": [
Expand All @@ -15,7 +15,7 @@
"Gruntfile.js"
],
"dependencies": {
"quill": "^1.1.5",
"quill": "^1.3.6",
"angular": "^1.5.8"
},
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,11 @@ <h3>Set Styles</h3>
<button ng-click="backgroundColor = backgroundColor ? '' : 'gray'">toggle Backgroundcolor</button>
<ng-quill-editor ng-model="title" styles="{backgroundColor: backgroundColor}"></ng-quill-editor>

<h3>ng-quill - custom toolbar</h3>
<h3>ng-quill - custom toolbar (position: bottom)</h3>
<ng-quill-editor
ng-model="title"
placeholder="''"
custom-toolbar-position="bottom"
>
<ng-quill-toolbar>
<div id="ng-quill-toolbar">
Expand Down
3 changes: 2 additions & 1 deletion demoamd.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ <h3>Editor without toolbar + required and ngModule</h3>
form invalid?: {{form.$invalid}}
</form>

<h3>ng-quill - custom toolbar</h3>
<h3>ng-quill - custom toolbar (position: bottom)</h3>
<ng-quill-editor
ng-model="title"
custom-toolbar-position="bottom"
>
<ng-quill-toolbar>
<div id="ng-quill-toolbar">
Expand Down
Loading

0 comments on commit 5b3decf

Please sign in to comment.