jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
25 lines (24 loc) • 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-2026 Valerii 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);