Files
cartlog-admin/node_modules/jodit/esm/plugins/format-block/format-block.js
2026-01-01 15:25:19 +05:30

25 lines
718 B
JavaScript

/*!
* 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";
import "./config.js";
/**
* Process command - `formatblock`
*/
export function formatBlock(editor) {
editor.registerButton({
name: 'paragraph',
group: 'font'
});
editor.registerCommand('formatblock', (command, second, third) => {
editor.s.commitStyle({
element: third
});
editor.synchronizeValues();
return false;
});
}
pluginSystem.add('formatBlock', formatBlock);