-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong property and alternative path order.
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,9 @@ | |
define( [ | ||
'window', | ||
'callback', | ||
'EngineQuail' | ||
], function( window, callback, EngineQuail ) { | ||
'EngineQuail', | ||
'editor' | ||
], function( window, callback, EngineQuail, editor ) { | ||
/* @endexclude */ | ||
function quailInclude() { | ||
var acNamespace = CKEDITOR.plugins.a11ychecker, | ||
|
@@ -51,7 +52,7 @@ define( [ | |
return; | ||
} | ||
|
||
var quailPath = 'plugins/a11ychecker/libs/quail/quail.jquery.min.js' || CKEDITOR.config.a11ychecker_quailPath; | ||
var quailPath = editor.config.a11ychecker_quailPath || 'plugins/a11ychecker/libs/quail/quail.jquery.min.js'; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
f1ames
Contributor
|
||
|
||
CKEDITOR.scriptLoader.load( [ quailPath ], function( completed ) { | ||
|
||
|
I have a problem with the default path. When it is set like
plugins/a11ychecker/libs/quail/quail.jquery.min.js
it tries to fetch quail from path relative to current URL which may not work in some cases. If it is set like/plugins/a11ychecker/libs/quail/quail.jquery.min.js
it will use absolute path (relative to domain part and not the whole url) which also may not work.