editor.js/types/configs/paste-config.d.ts
George Berezhnoy afa158d5db
Fix issue with pasting html to non-initial tools (#639)
* Fix issue with pasting html to not initial tools

* Bump version and add changelog
2019-03-08 08:41:58 +03:00

26 lines
547 B
TypeScript

import {BlockToolData} from '../index';
/**
* 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[]};
}