Files
cartlog-admin/node_modules/jodit/esm/plugins/video/config.d.ts
2026-01-01 15:25:19 +05:30

36 lines
1.1 KiB
TypeScript

/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
declare module 'jodit/config' {
interface Config {
video: {
/**
* Custom function for parsing video URL to embed code
* ```javascript
* Jodit.make('#editor', {
* video: {
* // Defaul behavior
* parseUrlToVideoEmbed: (url, size) => Jodit.modules.Helpers.convertMediaUrlToVideoEmbed(url, size)
* }
* });
* ```
*/
parseUrlToVideoEmbed?: (url: string, { width, height }?: {
width?: number;
height?: number;
}) => string;
/**
* Default width for video iframe. Default: 400
*/
defaultWidth?: number;
/**
* Default height for video iframe. Default: 345
*/
defaultHeight?: number;
};
}
}
export {};