0.0.16 • Published 6 years ago

twic-mentions v0.0.16

Weekly downloads
65
License
-
Repository
-
Last release
6 years ago

Quilljs mentions

Custom module for Quill.js. to allow mentions.

Install

Use npm :

npm install twic-mentions --save

Usage

Configuration

To use mentions, initiate a quill editor and add the twicmentions configuration key when defining your quill modules.

var quill = new Quill('#editor', {
    modules:{
        twicmention : {
            callback : callback,
            container : "#container"
        }
      }
});

callback : Function used to retrieved mentions. It can be synchronous or asynchronous (return a promise).

IN - search : string

OUT - array :

[
    {
        id : "identifier of your mention",
        label : "the text of your mention that will appear in text editor"
        text : "the text of your mention that will appear in search list (Facultative)"
        image : "the image of your mention that will appear in search list (Facultative)"
    }
]

container : Is a css selector of the html element that will contains the result

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago