glebtv-ckeditor 4.4.7 → 4.4.7.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: e579ae80cc0db00d0e0656f8cc030d6e16bc8402
4
- data.tar.gz: efe56f7a3a5b05ba863e2996391eef6d532e001d
3
+ metadata.gz: 807ffb852a76c04c3bd7441e7e57d208e1eebe4c
4
+ data.tar.gz: c84bf9bfe6ff043cf836091bee9cd39b1797635a
5
5
  SHA512:
6
- metadata.gz: 70f800c018a17b41bfef96927230a9367faff8b1b12f895c0d5dd3cbbc0bf00f24d36d0babd655a8c62d2a2eac5aea05b860865b4f88164ab271939d3c441444
7
- data.tar.gz: 10fdfc9624fa6c93c3b3a46be88b58df3d77461c5152d6441622629f75db4d9fa2bc078aff365f7d2e39c5218ed73ac057154eccf2aa221ccbe7aecca5e3c10b
6
+ metadata.gz: 63c74d330fc2a31cd2e8d9bc949e7f5ae710427b1728973cf7f8434980c1fedfa49ff7494b900f163b75995305ffeca18cd102e7c7a877a1b4af11eb0b589294
7
+ data.tar.gz: 26f7ac315fb9d11454743fc79b77110b856445d1844ff2a88dca59759ca82ccd7ea23841ebbdf926cbce047cfc74986cfd5ef3279f924e9a72a52a3fba588ec3
@@ -1,4 +1,4 @@
1
1
  module Ckeditor
2
- VERSION="4.4.7".freeze
2
+ VERSION="4.4.7.1".freeze
3
3
  end
4
4
 
@@ -185,17 +185,17 @@
185
185
  // Load the content
186
186
  this.setValueOf('main', 'data', oldData = editor.getData());
187
187
 
188
- if (!IsStyleSheetAlreadyLoaded(rootPath + 'css/codemirror.min.css')) {
189
- CKEDITOR.document.appendStyleSheet(rootPath + 'css/codemirror.min.css');
188
+ if (!IsStyleSheetAlreadyLoaded(CKEDITOR.getUrl('plugins/codemirror/css/codemirror.min.css'))) {
189
+ CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl('plugins/codemirror/css/codemirror.min.css'));
190
190
  }
191
191
 
192
- if (config.theme.length && config.theme != 'default' && !IsStyleSheetAlreadyLoaded(rootPath + 'css/codemirror.min.css')) {
193
- CKEDITOR.document.appendStyleSheet(rootPath + 'theme/' + config.theme + '.css');
192
+ if (config.theme.length && config.theme != 'default' && !IsStyleSheetAlreadyLoaded(CKEDITOR.getUrl('plugins/codemirror/css/codemirror.min.css'))) {
193
+ CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl('plugins/codemirror/theme/' + config.theme + '.css'));
194
194
  }
195
195
 
196
196
  if (typeof (CodeMirror) == 'undefined') {
197
197
 
198
- CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.min.js', function() {
198
+ CKEDITOR.scriptLoader.load(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.min.js'), function() {
199
199
 
200
200
  CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), function() {
201
201
  loadCodeMirrorInline(editor, textArea);
@@ -520,17 +520,17 @@
520
520
  }
521
521
 
522
522
  editor.addMode('source', function (callback) {
523
- if (!IsStyleSheetAlreadyLoaded(rootPath + 'css/codemirror.min.css')) {
524
- CKEDITOR.document.appendStyleSheet(rootPath + 'css/codemirror.min.css');
523
+ if (!IsStyleSheetAlreadyLoaded(CKEDITOR.getUrl('plugins/codemirror/css/codemirror.min.css'))) {
524
+ CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl('plugins/codemirror/css/codemirror.min.css'));
525
525
  }
526
526
 
527
- if (config.theme.length && config.theme != 'default' && !IsStyleSheetAlreadyLoaded(rootPath + 'css/codemirror.min.css')) {
528
- CKEDITOR.document.appendStyleSheet(rootPath + 'theme/' + config.theme + '.css');
527
+ if (config.theme.length && config.theme != 'default' && !IsStyleSheetAlreadyLoaded(CKEDITOR.getUrl('plugins/codemirror/css/codemirror.min.css'))) {
528
+ CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl('plugins/codemirror/theme/' + config.theme + '.css'));
529
529
  }
530
530
 
531
531
  if (typeof (CodeMirror) == 'undefined') {
532
532
 
533
- CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.min.js', function() {
533
+ CKEDITOR.scriptLoader.load(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.min.js'), function() {
534
534
 
535
535
  CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), function() {
536
536
  loadCodeMirror(editor);
@@ -552,55 +552,55 @@
552
552
  });
553
553
 
554
554
  function getCodeMirrorScripts() {
555
- var scriptFiles = [rootPath + 'js/codemirror.addons.min.js'];
555
+ var scriptFiles = [CKEDITOR.getUrl('plugins/codemirror/js/codemirror.addons.min.js')];
556
556
 
557
557
  switch (config.mode) {
558
558
  case "bbcode":
559
559
  {
560
- scriptFiles.push(rootPath + 'js/codemirror.mode.bbcode.min.js');
560
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.bbcode.min.js'));
561
561
  }
562
562
 
563
563
  break;
564
564
  case "bbcodemixed":
565
565
  {
566
- scriptFiles.push(rootPath + 'js/codemirror.mode.bbcodemixed.min.js');
566
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.bbcodemixed.min.js'));
567
567
  }
568
568
 
569
569
  break;
570
570
  case "htmlmixed":
571
571
  {
572
- scriptFiles.push(rootPath + 'js/codemirror.mode.htmlmixed.min.js');
572
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.htmlmixed.min.js'));
573
573
  }
574
574
 
575
575
  break;
576
576
  case "text/html":
577
577
  {
578
- scriptFiles.push(rootPath + 'js/codemirror.mode.htmlmixed.min.js');
578
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.htmlmixed.min.js'));
579
579
  }
580
580
 
581
581
  break;
582
582
  case "application/x-httpd-php":
583
583
  {
584
- scriptFiles.push(rootPath + 'js/codemirror.mode.php.min.js');
584
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.php.min.js'));
585
585
  }
586
586
 
587
587
  break;
588
588
  case "text/javascript":
589
589
  {
590
- scriptFiles.push(rootPath + 'js/codemirror.mode.javascript.min.js');
590
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.javascript.min.js'));
591
591
  }
592
592
 
593
593
  break;
594
594
  default:
595
- scriptFiles.push(rootPath + 'js/codemirror.mode.htmlmixed.min.js');
595
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.htmlmixed.min.js'));
596
596
  }
597
597
 
598
598
  if (config.useBeautify) {
599
- scriptFiles.push(rootPath + 'js/beautify.min.js');
599
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/beautify.min.js'));
600
600
  }
601
601
 
602
602
  if (config.enableSearchTools) {
603
- scriptFiles.push(rootPath + 'js/codemirror.addons.search.min.js');
603
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.addons.search.min.js'));
604
604
  }
605
605
  return scriptFiles;
606
606
  }
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.4.7
4
+ version: 4.4.7.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: 2015-02-17 00:00:00.000000000 Z
11
+ date: 2015-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails