mirror of
https://github.com/codex-team/editor.js
synced 2024-06-22 23:46:37 +02:00
* listeners module added
* Destroy method added
* Destroy method for plugins added
* Delete plugins properties from window obj
* Revert "Delete plugins properties from window obj"
This reverts commit 6c91f81229
.
* Twitter and instagram api's destroy
* Scripts destoy added
* Fix
* Replace regex with String.indexOf
* Settings for destroyer
38 lines
626 B
JavaScript
38 lines
626 B
JavaScript
/**
|
|
* Codex Sanitizer
|
|
*/
|
|
|
|
module.exports = (function (sanitizer) {
|
|
|
|
var janitor = require('html-janitor');
|
|
|
|
/**
|
|
* Basic config
|
|
*/
|
|
var Config = {
|
|
|
|
BASIC : {
|
|
|
|
tags: {
|
|
p: {},
|
|
a: {
|
|
href: true,
|
|
target: '_blank',
|
|
rel: 'nofollow'
|
|
},
|
|
i: {},
|
|
b: {},
|
|
strong: {},
|
|
em: {},
|
|
span: {}
|
|
}
|
|
}
|
|
};
|
|
|
|
sanitizer.Config = Config;
|
|
|
|
sanitizer.init = janitor;
|
|
|
|
return sanitizer;
|
|
|
|
})({}); |