jodit-pro
Version:
PRO Version of Jodit Editor
39 lines (38 loc) • 1.34 kB
TypeScript
/*!
* Jodit Editor PRO (https://xdsoft.net/jodit/)
* See LICENSE.md in the project root for license information.
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
*/
import type { CanPromise, IJodit, IUIOption } from "jodit/esm/types/index";
declare global {
const Prism: {
languages: {
[key: string]: Function;
};
highlight: (code: string, parser: any, language: string) => string;
};
}
declare module 'jodit/esm/config' {
interface Config {
pasteCode: {
globalHighlightLib: boolean;
canonicalLanguageCode: (lang: string) => string;
highlightLib: {
highlight: (code: string, language: string) => string;
isLangLoaded: (lang: string) => boolean;
langUrl: (lang: string) => string;
beforeLibLoad?: () => CanPromise<void>;
afterLibLoad?: () => CanPromise<void>;
js: string[];
css: string[];
};
defaultLanguage: string;
languages: IUIOption[];
insertTemplate: (jodit: IJodit, language: string, value: string) => string;
dialog: {
width: number;
height: number;
};
};
}
}