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/image/image.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/image/README.md]]
* @packageDocumentation
* @module plugins/image
*/
import type { IJodit } from "../../types/index";
export declare function image(editor: IJodit): void;

58
node_modules/jodit/esm/plugins/image/image.js generated vendored Normal file
View File

@@ -0,0 +1,58 @@
/*!
* 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 { Dom } from "../../core/dom/index.js";
import { pluginSystem } from "../../core/global.js";
import { $$ } from "../../core/helpers/index.js";
import { Icon } from "../../core/ui/icon.js";
import { Config } from "../../config.js";
import { FileSelectorWidget } from "../../modules/widget/index.js";
import imageIcon from "./image.svg.js";
Icon.set('image', imageIcon);
Config.prototype.controls.image = {
popup: (editor, current, close) => {
let sourceImage = null;
if (current &&
!Dom.isText(current) &&
Dom.isHTMLElement(current) &&
(Dom.isTag(current, 'img') || $$('img', current).length)) {
sourceImage = Dom.isTag(current, 'img')
? current
: $$('img', current)[0];
}
editor.s.save();
return FileSelectorWidget(editor, {
filebrowser: (data) => {
editor.s.restore();
data.files &&
data.files.forEach(file => editor.s.insertImage(data.baseurl + file, null, editor.o.imageDefaultWidth));
close();
},
upload: true,
url: async (url, text) => {
editor.s.restore();
if (/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(url)) {
url = '//' + url;
}
const image = sourceImage || editor.createInside.element('img');
image.setAttribute('src', url);
image.setAttribute('alt', text);
if (!sourceImage) {
await editor.s.insertImage(image, null, editor.o.imageDefaultWidth);
}
close();
}
}, sourceImage, close);
},
tags: ['img'],
tooltip: 'Insert Image'
};
export function image(editor) {
editor.registerButton({
name: 'image',
group: 'media'
});
}
pluginSystem.add('image', image);

1
node_modules/jodit/esm/plugins/image/image.svg.js generated vendored Normal file
View File

@@ -0,0 +1 @@
export default "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 1792\"> <path d=\"M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z\"/> </svg> ";