mirror of
https://github.com/codex-team/editor.js
synced 2024-06-04 15:02:42 +02:00
afa158d5db
* Fix issue with pasting html to not initial tools * Bump version and add changelog
26 lines
547 B
TypeScript
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[]};
|
|
}
|