mirror of
https://github.com/codex-team/editor.js
synced 2024-06-26 09:20:07 +02:00
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[]};
|
|
}
|