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

39
node_modules/jodit/esm/plugins/hr/hr.js generated vendored Normal file
View File

@@ -0,0 +1,39 @@
/*!
* 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 { Icon } from "../../core/ui/icon.js";
import { Config } from "../../config.js";
import hrIcon from "./hr.svg.js";
Icon.set('hr', hrIcon);
Config.prototype.controls.hr = {
command: 'insertHorizontalRule',
tags: ['hr'],
tooltip: 'Insert Horizontal Line'
};
export function hr(editor) {
editor.registerButton({
name: 'hr',
group: 'insert'
});
editor.registerCommand('insertHorizontalRule', () => {
const elm = editor.createInside.element('hr');
editor.s.insertNode(elm, false, false);
const block = Dom.closest(elm.parentElement, Dom.isBlock, editor.editor);
if (block && Dom.isEmpty(block) && block !== editor.editor) {
Dom.after(block, elm);
Dom.safeRemove(block);
}
let p = Dom.next(elm, Dom.isBlock, editor.editor, false);
if (!p) {
p = editor.createInside.element(editor.o.enter);
Dom.after(elm, p);
}
editor.s.setCursorIn(p);
return false;
});
}
pluginSystem.add('hr', hr);

1
node_modules/jodit/esm/plugins/hr/hr.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=\"M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z\"/> </svg> ";