quill-mention
Advanced tools
Comparing version 2.1.2 to 2.1.3
{ | ||
"name": "quill-mention", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "@mentions for the Quill rich text editor", | ||
@@ -5,0 +5,0 @@ "main": "src/quill.mention.js", |
@@ -85,2 +85,7 @@ ![Quill Mention](static/quill-mention.png "Quill Mention") | ||
| `mentionListClass` | `'ql-mention-list'` | Style class to be used for the mention list (may be null) | ||
### Styling | ||
To allow styling based on the menu orientation, a class is added depending on the orientation and the `mentionContainerClass` option. By default this will be `ql-mention-list-container-bottom` or `ql-mention-list-container-top`. | ||
## Authors | ||
@@ -87,0 +92,0 @@ |
@@ -366,2 +366,10 @@ import Quill from 'quill'; | ||
if (topPos >= 0) { | ||
this.mentionContainer.classList.add(`${this.options.mentionContainerClass}-bottom`); | ||
this.mentionContainer.classList.remove(`${this.options.mentionContainerClass}-top`); | ||
} else { | ||
this.mentionContainer.classList.add(`${this.options.mentionContainerClass}-top`); | ||
this.mentionContainer.classList.remove(`${this.options.mentionContainerClass}-bottom`); | ||
} | ||
this.mentionContainer.style.top = `${topPos}px`; | ||
@@ -368,0 +376,0 @@ this.mentionContainer.style.left = `${leftPos}px`; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36589
438
98