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

20
node_modules/jodit/esm/plugins/line-height/config.d.ts generated vendored Normal file
View File

@@ -0,0 +1,20 @@
/*!
* 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
*/
declare module 'jodit/config' {
interface Config {
/**
* Default line spacing for the entire editor
*
* ```js
* Jodit.make('#editor', {
* defaultLineHeight: 1.2
* })
* ```
*/
defaultLineHeight: number | null;
}
}
export {};

18
node_modules/jodit/esm/plugins/line-height/config.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
/*!
* 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 { memorizeExec } from "../../core/helpers/index.js";
import { Icon } from "../../core/ui/icon.js";
import { Config } from "../../config.js";
import lineHeightIcon from "./line-height.svg.js";
Config.prototype.defaultLineHeight = null;
Icon.set('line-height', lineHeightIcon);
Config.prototype.controls.lineHeight = {
command: 'applyLineHeight',
tags: ['ol'],
tooltip: 'Line height',
list: [1, 1.1, 1.2, 1.3, 1.4, 1.5, 2],
exec: (editor, event, { control }) => memorizeExec(editor, event, { control }, (value) => value)
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'ارتفاع الخط'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Výška čáry'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Zeilenhöhe'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Altura de la línea'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'ارتفاع خط'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Rivin korkeus'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Hauteur de ligne'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'גובה שורה'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Vonal magassága'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Tinggi baris'
};

View File

@@ -0,0 +1,28 @@
/*!
* 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 * as ar from "./ar";
import * as cs_cz from "./cs_cz";
import * as de from "./de";
import * as es from "./es";
import * as fa from "./fa";
import * as fi from "./fi";
import * as fr from "./fr";
import * as he from "./he";
import * as hu from "./hu";
import * as id from "./id";
import * as it from "./it";
import * as ja from "./ja";
import * as ko from "./ko";
import * as mn from "./mn";
import * as nl from "./nl";
import * as pl from "./pl";
import * as pt_br from "./pt_br";
import * as ru from "./ru";
import * as tr from "./tr";
import * as ua from "./ua";
import * as zh_cn from "./zh_cn";
import * as zh_tw from "./zh_tw";
export { ar, cs_cz, de, es, fa, fi, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, ua, zh_cn, zh_tw };

View File

@@ -0,0 +1,28 @@
/*!
* 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 * as ar from "./ar.js";
import * as cs_cz from "./cs_cz.js";
import * as de from "./de.js";
import * as es from "./es.js";
import * as fa from "./fa.js";
import * as fi from "./fi.js";
import * as fr from "./fr.js";
import * as he from "./he.js";
import * as hu from "./hu.js";
import * as id from "./id.js";
import * as it from "./it.js";
import * as ja from "./ja.js";
import * as ko from "./ko.js";
import * as mn from "./mn.js";
import * as nl from "./nl.js";
import * as pl from "./pl.js";
import * as pt_br from "./pt_br.js";
import * as ru from "./ru.js";
import * as tr from "./tr.js";
import * as ua from "./ua.js";
import * as zh_cn from "./zh_cn.js";
import * as zh_tw from "./zh_tw.js";
export { ar, cs_cz, de, es, fa, fi, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, ua, zh_cn, zh_tw };

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Altezza linea'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'ラインの高さ'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': '선 높이'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Зураасны өндөр'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Lijnhoogte'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Wysokość linii'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Altura da linha'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Высота линии'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Çizgi yüksekliği'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': 'Висота лінії'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': '线高'
};

View File

@@ -0,0 +1,4 @@
declare const _exports: {
'Line height': string;
};
export = _exports;

View File

@@ -0,0 +1,9 @@
"use strict";
/*!
* 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
*/
export default {
'Line height': '行高'
};

View File

@@ -0,0 +1,20 @@
/*!
* 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/line-height/README.md]]
* @packageDocumentation
* @module plugins/line-height
*/
import type { IJodit } from "../../types/index";
import { Plugin } from "../../core/plugin/index";
import "./config";
export declare class lineHeight extends Plugin {
buttons: Plugin['buttons'];
constructor(jodit: IJodit);
protected afterInit(jodit: IJodit): void;
private applyLineHeight;
protected beforeDestruct(jodit: IJodit): void;
}

View File

@@ -0,0 +1,82 @@
/*!
* 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
*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (var i = decorators.length - 1; i >= 0; i--)
if (d = decorators[i])
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { autobind } from "../../core/decorators/index.js";
import { Dom } from "../../core/dom/dom.js";
import { extendLang, pluginSystem } from "../../core/global.js";
import { css } from "../../core/helpers/index.js";
import { Plugin } from "../../core/plugin/index.js";
import "./config.js";
import * as langs from "./langs/index.js";
export class lineHeight extends Plugin {
constructor(jodit) {
super(jodit);
this.buttons = [
{
name: 'lineHeight',
group: 'font'
}
];
extendLang(langs);
}
afterInit(jodit) {
css(jodit.editor, {
lineHeight: jodit.o.defaultLineHeight
});
jodit.registerCommand('applyLineHeight', this.applyLineHeight);
}
applyLineHeight(ignore, ignoreA, value) {
const { s, createInside: c, editor: root, o } = this.j;
if (!s.isFocused()) {
s.focus();
}
s.save();
let addStyle;
const apply = (node) => {
let parentBlock = Dom.closest(node, Dom.isBlock, root);
if (!parentBlock) {
parentBlock = Dom.wrap(node, o.enter, c);
}
const previousValue = css(parentBlock, 'lineHeight');
if (addStyle === undefined) {
addStyle = previousValue.toString() !== value.toString();
}
css(parentBlock, 'lineHeight', addStyle ? value : null);
};
try {
if (s.isCollapsed()) {
const fake = c.fake();
s.insertNode(fake, false, false);
apply(fake);
Dom.safeRemove(fake);
}
else {
s.eachSelection(apply);
}
}
finally {
s.restore();
}
}
beforeDestruct(jodit) {
css(jodit.editor, {
lineHeight: null
});
}
}
__decorate([
autobind
], lineHeight.prototype, "applyLineHeight", null);
pluginSystem.add('lineHeight', lineHeight);

View File

@@ -0,0 +1 @@
export default "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z\"/> <path d=\"M22.8412 7H8.84119V5H22.8412V7Z\"/> <path d=\"M22.8412 11H8.84119V9H22.8412V11Z\"/> <path d=\"M8.84119 15H22.8412V13H8.84119V15Z\"/> <path d=\"M22.8412 19H8.84119V17H22.8412V19Z\"/> </svg> ";