Files
vikunja/frontend/cypress/support/index.d.ts
kolaente ce3d49cc02 fix(editor): make pasting a file work again
It seems like only one paste handler is possible - with the change  inf52a321acf19b8925a5285abf09ae3ed51ea4ca8 the paste handler for the image paste did not work anymore.

Resolves https://community.vikunja.io/t/feature-suggestion-paste-images-directly-into-description-comment-from-clipboard/3656
2025-05-20 16:57:26 +02:00

12 lines
371 B
TypeScript

/// <reference types="cypress" />
declare namespace Cypress {
interface Chainable<Subject = any> {
/**
* Pastes a file onto the subject element.
* @param fileName The name of the file to paste
* @param fileType The MIME type of the file (defaults to 'image/png')
*/
pasteFile(fileName: string, fileType?: string): Chainable<Subject>;
}
}