This commit is contained in:
Murod Khaydarov 2017-04-23 01:12:06 +03:00
parent a281802b18
commit aadde64fbe
2 changed files with 11 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -48,6 +48,16 @@ module.exports = (function (sanitizer) {
sanitizer.Config = Config;
/**
*
* @param userCustomConfig
* @returns {*}
* @private
*
* @description If developer uses editor's API, then he can customize sane restrictions.
* Or, sane config can be defined globally in editors initialization. That config will be used everywhere
* At least, if there is no config overrides, that API uses BASIC Default configation
*/
let init_ = function (userCustomConfig) {
let configuration = userCustomConfig || Config.CUSTOM || Config.BASIC;