We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94fcea4 + 380826f commit 2fd2f1fCopy full SHA for 2fd2f1f
plugin.js
@@ -1,11 +1,15 @@
1
-UPLOADCARE_CROP = true;
2
-
3
CKEDITOR.plugins.add('uploadcare', {
4
init : function(editor) {
5
var me = this;
6
var _file_id;
7
8
- UPLOADCARE_CROP = !editor.config.USE_PHP;
+ // Check for custom crop
+ if (!!editor.config.USE_PHP) {
+ UPLOADCARE_CROP = false;
9
+ } else if (typeof UPLOADCARE_CROP === 'undefined') {
10
+ UPLOADCARE_CROP = true;
11
+ }
12
+
13
UPLOADCARE_AUTOSTORE = !editor.config.USE_PHP;
14
CKEDITOR.scriptLoader.load('https://ucarecdn.com/widget/0.13.3/uploadcare/uploadcare-0.13.3.min.js');
15
0 commit comments