mirror of
https://github.com/codex-team/editor.js
synced 2024-06-20 22:55:15 +02:00
Comments for paste tool added
This commit is contained in:
parent
089c8b59de
commit
fa40959f2b
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Paste plugin.
|
||||
*
|
||||
* Listen to clipboard paste event and analize pasted text whit patterns in pattern.js
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue