Set parameters to optional on filter.applyTo()

This commit is contained in:
Leo Chen 2019-03-25 21:41:36 +11:00
parent 51e948dd45
commit 40caec87f1
2 changed files with 2 additions and 1 deletions

View File

@ -620,6 +620,7 @@ function test_filter() {
allowed = filter.allow('rule', 'name', false);
var apply: boolean = filter.applyTo(CKEDITOR.htmlParser.fragment.fromHtml('string'), true, false, 1);
apply = filter.applyTo(new CKEDITOR.htmlParser.element('name', null));
apply = filter.applyTo(new CKEDITOR.htmlParser.element('name', null), true, false, 1);
var checked: boolean = filter.check(style);

View File

@ -1436,7 +1436,7 @@ declare namespace CKEDITOR {
addFeature(feature: feature): boolean;
addTransformations(transformations: Array<Array<string | filter.transformation>>): void;
allow(newRules: filter.allowedContentRules, featureName?: string, overrideCustom?: boolean): boolean;
applyTo(fragment: htmlParser.fragment | htmlParser.element, toHrml: boolean, transformOnly: boolean, enterMode: number): boolean;
applyTo(fragment: htmlParser.fragment | htmlParser.element, toHtml?: boolean, transformOnly?: boolean, enterMode?: number): boolean;
check(test: filter.contentRule, applyTransformations?: boolean, strictCheck?: boolean): boolean;
checkFeature(feature: feature): boolean;
clone(): filter;