0.0.16 • Published 7 years ago

twic-mentions v0.0.16

Weekly downloads
65
License
-
Repository
-
Last release
7 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

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago