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

View File

@@ -0,0 +1 @@
export default "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 1792\"> <path d=\"M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z\"/> </svg> ";

View File

@@ -0,0 +1 @@
export default "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 1792\"> <path d=\"M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z\"/> </svg> ";

View File

@@ -0,0 +1,21 @@
/*!
* 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/redo-undo/README.md]]
* @packageDocumentation
* @module plugins/redo-undo
*/
import type { IJodit, IPlugin } from "../../types/index";
import { Plugin } from "../../core/plugin/plugin";
/**
* Custom process Redo and Undo functionality
*/
export declare class redoUndo extends Plugin {
/** @override */
buttons: IPlugin['buttons'];
protected beforeDestruct(): void;
protected afterInit(editor: IJodit): void;
}

60
node_modules/jodit/esm/plugins/redo-undo/redo-undo.js generated vendored Normal file
View File

@@ -0,0 +1,60 @@
/*!
* 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 consts from "../../core/constants.js";
import { pluginSystem } from "../../core/global.js";
import { Plugin } from "../../core/plugin/plugin.js";
import { Icon } from "../../core/ui/icon.js";
import { Config } from "../../config.js";
import redoIcon from "./icons/redo.svg.js";
import undoIcon from "./icons/undo.svg.js";
Icon.set('redo', redoIcon).set('undo', undoIcon);
Config.prototype.controls.redo = {
mode: consts.MODE_SPLIT,
isDisabled: (editor) => !editor.history.canRedo(),
tooltip: 'Redo'
};
Config.prototype.controls.undo = {
mode: consts.MODE_SPLIT,
isDisabled: (editor) => !editor.history.canUndo(),
tooltip: 'Undo'
};
/**
* Custom process Redo and Undo functionality
*/
export class redoUndo extends Plugin {
constructor() {
super(...arguments);
/** @override */
this.buttons = [
{
name: 'undo',
group: 'history'
},
{
name: 'redo',
group: 'history'
}
];
}
beforeDestruct() {
// do nothing
}
afterInit(editor) {
const callback = (command) => {
editor.history[command]();
return false;
};
editor.registerCommand('redo', {
exec: callback,
hotkeys: ['ctrl+y', 'ctrl+shift+z', 'cmd+y', 'cmd+shift+z']
});
editor.registerCommand('undo', {
exec: callback,
hotkeys: ['ctrl+z', 'cmd+z']
});
}
}
pluginSystem.add('redoUndo', redoUndo);