-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathEngineDefault.js
44 lines (36 loc) · 1.24 KB
/
EngineDefault.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* @license Copyright (c) 2014-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/license
*/
define( [ 'Engine', 'IssueList', 'Issue', 'IssueDetails' ], function( Engine, IssueList, Issue, IssueDetails ) {
'use strict';
/**
* A default engine driver which has to be overridden. This engine won't find
* any issues.
*
* @since 4.6.0
* @class CKEDITOR.plugins.a11ychecker.EngineDefault
* @constructor
*/
function EngineDefault( options, plugin ) {
}
EngineDefault.prototype = new Engine();
EngineDefault.prototype.constructor = EngineDefault;
EngineDefault.prototype.fixesMapping = {};
/**
* Performs accessibility checking for the current editor content.
*
* @member CKEDITOR.plugins.a11ychecker.EngineDefault
* @param {CKEDITOR.plugins.a11ychecker.Controller} a11ychecker
* @param {CKEDITOR.dom.element} contentElement DOM object of container which contents will be checked.
* @param {Function} callback
*/
EngineDefault.prototype.process = function( a11ychecker, contentElement, callback ) {
var issueList = new IssueList();
this.filterIssues( issueList, contentElement );
if ( callback ) {
callback( issueList );
}
};
return EngineDefault;
} );