jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
30 lines (29 loc) • 845 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 { Icon } from "../../core/ui/icon.js";
import { Config } from "../../config.js";
import eraserIcon from "./eraser.svg.js";
Config.prototype.cleanHTML = {
timeout: 300,
removeEmptyElements: true,
fillEmptyParagraph: true,
replaceNBSP: true,
replaceOldTags: {
i: 'em',
b: 'strong'
},
allowTags: false,
denyTags: 'script',
useIframeSandbox: false,
removeOnError: true,
safeJavaScriptLink: true,
disableCleanFilter: null
};
Config.prototype.controls.eraser = {
command: 'removeFormat',
tooltip: 'Clear Formatting'
};
Icon.set('eraser', eraserIcon);