glebtv-ckeditor 4.4.3.0 → 4.4.3.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: 445a2b6e3f8ed06bf67e2fd3a2d13bed8012428d
4
- data.tar.gz: 822b86009005d41ce004e127f167b799c559c86e
3
+ metadata.gz: 0c8059af0d8248454c8d2e84caeb926c47b129e9
4
+ data.tar.gz: e07c5c3b471a43e2d4afb77b43c726a916f5ffe6
5
5
  SHA512:
6
- metadata.gz: f7b471389dfb0558b3295b49b87660ca8989b0ed6271b3019e0af1719802e3ed6562616a13b07d8bf4967de1b39473bc410987b91ee7258e878283bb637b42c6
7
- data.tar.gz: 4c7db2fe65737c08f028e1c4a1c042894c04c1fa7bfb6cef6cf3ff9f88b3a92374bf23c4727f6bb50c931f0cf6c081b3a42822c807dd773e1e497e1b41e93710
6
+ metadata.gz: b0e434d198360a3e60f3099b5730a72211f4a033a30ac0adfd8008e2af10f653b261c7c6cfd6df9fc6a5010d87a983e0c479d6a7bba4b5f7ff5fffc3d6a9ec67
7
+ data.tar.gz: 0cdea1bd9d96d5d0118265a8a85a168514a788f5deacc1452a3a67ba6876d7713b8936e1e15ece1f11f550f2647a3d3aeb56e905dfbb75ef377f62ee5543a60f
@@ -2,7 +2,7 @@ window['CKEDITOR_BASEPATH'] = "/assets/ckeditor/";
2
2
 
3
3
  window.CKEDITOR_ASSETS_MAPPING = {
4
4
  <% Rails.application.assets.each_logical_path( ->(path) {
5
- path =~ /ckeditor/ && path != 'ckeditor/override.js' && path != 'ckeditor/init.js' && path != 'ckeditor/ckeditor.js' && path.index('ckeditor/filebrowser').nil? && path.index('.md').nil? && path.index('.html').nil?
5
+ path =~ /ckeditor/ && path != 'ckeditor/override.js' && path != 'ckeditor/init.js' && path != 'ckeditor/ckeditor.js' && path.index('ckeditor/filebrowser').nil? && path.index('.md').nil? && (path.index('.html').nil? || !path.index('.htmlm').nil?)
6
6
  }) do |asset| %>
7
7
  "<%= asset %>": "<%= asset_path(asset) %>",
8
8
  <% end %>
@@ -1,4 +1,4 @@
1
1
  module Ckeditor
2
- VERSION="4.4.3.0".freeze
2
+ VERSION="4.4.3.1".freeze
3
3
  end
4
4
 
@@ -195,13 +195,13 @@
195
195
 
196
196
  if (typeof (CodeMirror) == 'undefined') {
197
197
 
198
- CKEDITOR.document.appendStyleSheet(rootPath + 'css/codemirror.min.css');
198
+ CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl('plugins/codemirror/css/codemirror.min.css'));
199
199
 
200
200
  if (config.theme.length && config.theme != 'default') {
201
- CKEDITOR.document.appendStyleSheet(rootPath + 'theme/' + config.theme + '.css');
201
+ CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl('plugins/codemirror/theme/' + config.theme + '.css'));
202
202
  }
203
203
 
204
- CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.min.js', function () {
204
+ CKEDITOR.scriptLoader.load(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.min.js'), function () {
205
205
 
206
206
  CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), function () {
207
207
  loadCodeMirrorInline(editor, textArea);
@@ -525,13 +525,13 @@
525
525
  editor.addMode('source', function(callback) {
526
526
  if (typeof (CodeMirror) == 'undefined') {
527
527
 
528
- CKEDITOR.document.appendStyleSheet(rootPath + 'css/codemirror.min.css');
528
+ CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl('plugins/codemirror/css/codemirror.min.css'));
529
529
 
530
530
  if (config.theme.length && config.theme != 'default') {
531
- CKEDITOR.document.appendStyleSheet(rootPath + 'theme/' + config.theme + '.css');
531
+ CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl('plugins/codemirror/theme/' + config.theme + '.css'));
532
532
  }
533
533
 
534
- CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.min.js', function() {
534
+ CKEDITOR.scriptLoader.load(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.min.js'), function() {
535
535
 
536
536
  CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), function() {
537
537
  loadCodeMirror(editor);
@@ -547,55 +547,55 @@
547
547
  });
548
548
 
549
549
  function getCodeMirrorScripts() {
550
- var scriptFiles = [rootPath + 'js/codemirror.addons.min.js'];
550
+ var scriptFiles = [CKEDITOR.getUrl('plugins/codemirror/js/codemirror.addons.min.js')];
551
551
 
552
552
  switch (config.mode) {
553
553
  case "bbcode":
554
554
  {
555
- scriptFiles.push(rootPath + 'js/codemirror.mode.bbcode.min.js');
555
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.bbcode.min.js'));
556
556
  }
557
557
 
558
558
  break;
559
559
  case "bbcodemixed":
560
560
  {
561
- scriptFiles.push(rootPath + 'js/codemirror.mode.bbcodemixed.min.js');
561
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.bbcodemixed.min.js'));
562
562
  }
563
563
 
564
564
  break;
565
565
  case "htmlmixed":
566
566
  {
567
- scriptFiles.push(rootPath + 'js/codemirror.mode.htmlmixed.min.js');
567
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.htmlmixed.min.js'));
568
568
  }
569
569
 
570
570
  break;
571
571
  case "text/html":
572
572
  {
573
- scriptFiles.push(rootPath + 'js/codemirror.mode.htmlmixed.min.js');
573
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.htmlmixed.min.js'));
574
574
  }
575
575
 
576
576
  break;
577
577
  case "application/x-httpd-php":
578
578
  {
579
- scriptFiles.push(rootPath + 'js/codemirror.mode.php.min.js');
579
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.php.min.js'));
580
580
  }
581
581
 
582
582
  break;
583
583
  case "text/javascript":
584
584
  {
585
- scriptFiles.push(rootPath + 'js/codemirror.mode.javascript.min.js');
585
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.javascript.min.js'));
586
586
  }
587
587
 
588
588
  break;
589
589
  default:
590
- scriptFiles.push(rootPath + 'js/codemirror.mode.htmlmixed.min.js');
590
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.mode.htmlmixed.min.js'));
591
591
  }
592
592
 
593
593
  if (config.useBeautify) {
594
- scriptFiles.push(rootPath + 'js/beautify.min.js');
594
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/beautify.min.js'));
595
595
  }
596
596
 
597
597
  if (config.enableSearchTools) {
598
- scriptFiles.push(rootPath + 'js/codemirror.addons.search.min.js');
598
+ scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/codemirror.addons.search.min.js'));
599
599
  }
600
600
  return scriptFiles;
601
601
  }
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  CKEDITOR.plugins.add('wordcount', {
7
- lang: 'ca,de,en,es,fr,it,jp,nl,no,pl,pt-br,ru,sv', // %REMOVE_LINE_CORE%
7
+ lang: ['en', 'ru'],
8
8
  version: 1.10,
9
9
  init: function(editor) {
10
10
  if (editor.elementMode === CKEDITOR.ELEMENT_MODE_INLINE) {
@@ -57,7 +57,7 @@ CKEDITOR.plugins.add('wordcount', {
57
57
 
58
58
  var format = defaultFormat;
59
59
 
60
- CKEDITOR.document.appendStyleSheet(this.path + 'css/wordcount.css');
60
+ CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl('plugins/wordcount/css/wordcount.css'));
61
61
 
62
62
  function counterId(editorInstance) {
63
63
  return 'cke_wordcount_' + editorInstance.name;
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.3.0
4
+ version: 4.4.3.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-07-24 00:00:00.000000000 Z
11
+ date: 2014-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails