glebtv-ckeditor 4.3.2.0 → 4.3.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 950605efb16ec25723eb79b816e3b7481857497f
4
- data.tar.gz: 0dd9001d2ec7de130907d0089fdd7c26f999d5a4
3
+ metadata.gz: 9657f9839d7a8069d69e64ccd4b7b66a7df6c41f
4
+ data.tar.gz: 2ce9b7923eaab58bcd2142f30f4626e8e14a4474
5
5
  SHA512:
6
- metadata.gz: a1e161c9e0d9318f04e5e18307a5471b23e1e6fb87ce8c643c8cda1c04e3edba87a0e2760090191ab5719f0a5bb2d622f72a79b7f81ca0d1cff98cc553c2c028
7
- data.tar.gz: 4ee35b53a9e541174653c7f7ab6de3b6194d9928be60757d7e2bcebef4b346e2093810e70badad6e4db7562d690c7c753f661ec9efb0603db3ae8a696044aa7e
6
+ metadata.gz: 247a1df2bdeed22c134187ddee02170bc3f71ba643ce22bfdc0c7bd6b9e6fc0d8e169e1db4d741768572e93d802c26b7aa586a73f97a4e01cb1338e8d29dc804
7
+ data.tar.gz: 670c2857beebe47875be110b24ce91a0ee93b51860b8c7616a1b8423d7f1fce1129aec930ca386add7603b3fdeb2d45b32fd19ca54418708efcb735a6f2a2d2e
@@ -1,3 +1,3 @@
1
1
  module Ckeditor
2
- VERSION="4.3.2.0".freeze
2
+ VERSION="4.3.2.1".freeze
3
3
  end
@@ -457,13 +457,13 @@
457
457
  editor.addMode('source', function(callback) {
458
458
  if (typeof (CodeMirror) == 'undefined') {
459
459
 
460
- CKEDITOR.document.appendStyleSheet(rootPath + 'css/codemirror.min.css');
460
+ CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl('plugins/codemirror/css/codemirror.min.css'));
461
461
 
462
462
  if (config.theme.length && config.theme != 'default') {
463
- CKEDITOR.document.appendStyleSheet(rootPath + 'theme/' + config.theme + '.css');
463
+ CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl('plugins/codemirror/theme/' + config.theme + '.css'));
464
464
  }
465
465
 
466
- CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.min.js', function() {
466
+ CKEDITOR.scriptLoader.load(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.min.js'), function() {
467
467
 
468
468
  CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), function() {
469
469
  loadCodeMirror(editor);
@@ -479,43 +479,43 @@
479
479
  });
480
480
 
481
481
  function getCodeMirrorScripts() {
482
- var scriptFiles = [rootPath + 'js/codemirror.addons.min.js'];
482
+ var scriptFiles = [CKEDITOR.getUrl('plugins/codemirror/js/codemirror.addons.min.js')];
483
483
 
484
484
  switch (config.mode) {
485
485
  case "htmlmixed":
486
486
  {
487
- scriptFiles.push(rootPath + 'js/codemirror.mode.htmlmixed.min.js');
487
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.htmlmixed.min.js'));
488
488
  }
489
489
 
490
490
  break;
491
491
  case "text/html":
492
492
  {
493
- scriptFiles.push(rootPath + 'js/codemirror.mode.htmlmixed.min.js');
493
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.htmlmixed.min.js'));
494
494
  }
495
495
 
496
496
  break;
497
497
  case "application/x-httpd-php":
498
498
  {
499
- scriptFiles.push(rootPath + 'js/codemirror.mode.php.min.js');
499
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.php.min.js'));
500
500
  }
501
501
 
502
502
  break;
503
503
  case "text/javascript":
504
504
  {
505
- scriptFiles.push(rootPath + 'js/codemirror.mode.javascript.min.js');
505
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.javascript.min.js'));
506
506
  }
507
507
 
508
508
  break;
509
509
  default:
510
- scriptFiles.push(rootPath + 'js/codemirror.mode.htmlmixed.min.js');
510
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.htmlmixed.min.js'));
511
511
  }
512
512
 
513
513
  if (config.useBeautify) {
514
- scriptFiles.push(rootPath + 'js/beautify.min.js');
514
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/beautify.min.js'));
515
515
  }
516
516
 
517
517
  if (config.enableSearchTools) {
518
- scriptFiles.push(rootPath + 'js/codemirror.addons.search.min.js');
518
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.addons.search.min.js'));
519
519
  }
520
520
  return scriptFiles;
521
521
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glebtv-ckeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.2.0
4
+ version: 4.3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Galeta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-13 00:00:00.000000000 Z
11
+ date: 2014-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails