update HTML-Janitor patch (#537)

* update HTML-Janitor patch

* update readme

* add licence to code
This commit is contained in:
Murod Khaydarov 2018-11-24 22:06:40 +03:00 committed by GitHub
commit 819719aadc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 10 deletions

View file

@ -223,6 +223,8 @@ editor.saver.save()
Take a look at the [example.html](example/example.html) to view more detailed examples.
## Credits and references
- We use [HTMLJanitor](https://github.com/guardian/html-janitor) module in our Sanitizer module.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"name": "codex.editor",
"version": "2.5.5",
"version": "2.5.6",
"description": "Codex Editor. Native JS, based on API and Open Source",
"main": "build/codex-editor.js",
"types": "./types/index.d.ts",
@ -33,7 +33,7 @@
"eslint": "^4.19.1",
"eslint-loader": "^2.1.0",
"extract-text-webpack-plugin": "^3.0.2",
"html-janitor": "^2.0.2",
"html-janitor": "^2.0.4",
"path": "^0.12.7",
"postcss-apply": "^0.10.0",
"postcss-color-hex-alpha": "^3.0.0",

View file

@ -298,6 +298,7 @@ export default class Sanitizer extends Module {
* At least, if there is no config overrides, that API uses Default configuration
*
* @uses https://www.npmjs.com/package/html-janitor
* @licence https://github.com/guardian/html-janitor/blob/master/LICENSE
*
* @param {SanitizerConfig} config - sanitizer extension
*/