Comments for paste tool added

This commit is contained in:
George Berezhnoy 2017-01-12 17:42:10 +03:00
parent 089c8b59de
commit fa40959f2b
2 changed files with 8 additions and 0 deletions

View file

@ -1,6 +1,7 @@
/**
* Paste plugin.
*
* Listen to clipboard paste event and analize pasted text whit patterns in pattern.js
*/
/**

View file

@ -1,6 +1,13 @@
/**
* Patterns
*
* To add plugin create callback function in one and add here this object:
* {
* type : '', - type of pasted text (for example, 'image', 'url' or your plugin name)
* regex : /regex/, - regex for pasted text
* callback : yourPlugin.smthPastedCallback - callback function in your plugin which is called when pasted text matches regex
* }
*
*/
pasteTool.patterns = [