jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
36 lines (35 loc) • 1.05 kB
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 { 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,iframe,object,embed',
useIframeSandbox: false,
removeOnError: true,
removeEventAttributes: true,
safeJavaScriptLink: true,
safeLinksTarget: true,
allowedStyles: false,
sanitizer: false,
sandboxIframesInContent: true,
convertUnsafeEmbeds: ['object', 'embed'],
disableCleanFilter: null
};
Config.prototype.controls.eraser = {
command: 'removeFormat',
tooltip: 'Clear Formatting'
};
Icon.set('eraser', eraserIcon);