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,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/powered-by-jodit/README.md]]
* @packageDocumentation
* @module plugins/powered-by-jodit
*/
import type { IJodit } from "../../types/index";
declare module 'jodit/config' {
interface Config {
/**
* Hide the link to the Jodit site at the bottom of the editor
*/
hidePoweredByJodit: boolean;
}
}
export declare function poweredByJodit(jodit: IJodit): void;

View File

@@ -0,0 +1,26 @@
/*!
* 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 { pluginSystem } from "../../core/global.js";
export function poweredByJodit(jodit) {
const { o } = jodit;
if (!o.hidePoweredByJodit &&
!o.inline &&
(o.showCharsCounter ||
o.showWordsCounter ||
o.showXPathInStatusbar)) {
jodit.hookStatus('ready', () => {
jodit.statusbar.append(jodit.create.fromHTML(`<a
tabindex="-1"
style="text-transform: uppercase"
class="jodit-status-bar-link"
target="_blank"
href="https://xdsoft.net/jodit/">
Powered by Jodit
</a>`), true);
});
}
}
pluginSystem.add('poweredByJodit', poweredByJodit);