MCPcopy
hub / github.com/codex-team/editor.js / baseSanitizeConfig

Method baseSanitizeConfig

src/components/tools/block.ts:204–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202 */
203 @_.cacheable
204 public get baseSanitizeConfig(): SanitizerConfig {
205 const baseConfig = {};
206
207 Array
208 .from(this.inlineTools.values())
209 .forEach(tool => Object.assign(baseConfig, tool.sanitizeConfig));
210
211 Array
212 .from(this.tunes.values())
213 .forEach(tune => Object.assign(baseConfig, tune.sanitizeConfig));
214
215 return baseConfig;
216 }
217}

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.80
valuesMethod · 0.80

Tested by

no test coverage detected