mirror of
https://github.com/codex-team/editor.js
synced 2024-06-29 10:50:23 +02:00
63eeec0f3b
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com> Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com> Co-authored-by: tasuku-s <tasuku@freemind.co.jp> Co-authored-by: Athul Anil Kumar <athul7744@outlook.com> Co-authored-by: Taly <vitalik7tv@yandex.ru> Co-authored-by: flaming-cl <51183663+flaming-cl@users.noreply.github.com> Co-authored-by: Nguyen Ngoc Son <sonnn.se@gmail.com> Co-authored-by: Sisir Das K <37764463+sis-dk@users.noreply.github.com> Co-authored-by: Sisir <sisir@hellosivi.com>
24 lines
506 B
TypeScript
24 lines
506 B
TypeScript
/**
|
|
* Tool onPaste configuration object
|
|
*/
|
|
export interface PasteConfig {
|
|
/**
|
|
* Array of tags Tool can substitute
|
|
* @type string[]
|
|
*/
|
|
tags?: string[];
|
|
|
|
/**
|
|
* Object of string patterns Tool can substitute.
|
|
* Key is your internal key and value is RegExp
|
|
*
|
|
* @type {{[key: string]: Regexp}}
|
|
*/
|
|
patterns?: {[key: string]: RegExp};
|
|
|
|
/**
|
|
* Object with arrays of extensions and MIME types Tool can substitute
|
|
*/
|
|
files?: {extensions?: string[], mimeTypes?: string[]};
|
|
}
|