inital commit

This commit is contained in:
2026-01-01 15:25:19 +05:30
commit f0ae49465a
36361 changed files with 4894111 additions and 0 deletions

12
node_modules/jodit/esm/plugins/preview/preview.d.ts generated vendored Normal file
View File

@@ -0,0 +1,12 @@
/*!
* 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
*/
/**
* [[include:plugins/preview/README.md]]
* @packageDocumentation
* @module plugins/preview
*/
import type { IJodit } from "../../types/index";
export declare function preview(editor: IJodit): void;

30
node_modules/jodit/esm/plugins/preview/preview.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
/*!
* 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
*/
import { MODE_SOURCE, MODE_WYSIWYG } from "../../core/constants.js";
import { pluginSystem } from "../../core/global.js";
import { previewBox } from "../../core/helpers/utils/print.js";
import { Config } from "../../config.js";
Config.prototype.controls.preview = {
icon: 'eye',
command: 'preview',
mode: MODE_SOURCE + MODE_WYSIWYG,
tooltip: 'Preview'
};
export function preview(editor) {
editor.registerButton({
name: 'preview'
});
editor.registerCommand('preview', (_, _1, defaultValue) => {
const dialog = editor.dlg();
dialog
.setSize(1024, 600)
.open('', editor.i18n('Preview'))
.setModal(true);
const [, onDestrcut] = previewBox(editor, defaultValue, 'px', dialog.getElm('content'));
dialog.e.on(dialog, 'afterClose', onDestrcut);
});
}
pluginSystem.add('preview', preview);