suneditor
Version:
Vanilla JavaScript based WYSIWYG web editor
37 lines (36 loc) • 958 B
TypeScript
import type {} from '../../typedef';
export default ExportPDF;
export type ExportPDFPluginOptions = {
/**
* - Server request URL for PDF generation
*/
apiUrl: string;
/**
* - Name of the generated PDF file
*/
fileName?: string;
};
/**
* @typedef ExportPDFPluginOptions
* @property {string} apiUrl - Server request URL for PDF generation
* @property {string} [fileName="suneditor-pdf"] - Name of the generated PDF file
*/
/**
* @class
* @description Export PDF plugin
*/
declare class ExportPDF extends PluginCommand {
/**
* @constructor
* @param {SunEditor.Kernel} kernel - The Kernel instance
* @param {ExportPDFPluginOptions} pluginOptions - plugin options
*/
constructor(kernel: SunEditor.Kernel, pluginOptions: ExportPDFPluginOptions);
title: any;
apiUrl: string;
fileName: string;
apiManager: ApiManager;
#private;
}
import { PluginCommand } from '../../interfaces';
import { ApiManager } from '../../modules/manager';