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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 807ffb852a76c04c3bd7441e7e57d208e1eebe4c
|
4
|
+
data.tar.gz: c84bf9bfe6ff043cf836091bee9cd39b1797635a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63c74d330fc2a31cd2e8d9bc949e7f5ae710427b1728973cf7f8434980c1fedfa49ff7494b900f163b75995305ffeca18cd102e7c7a877a1b4af11eb0b589294
|
7
|
+
data.tar.gz: 26f7ac315fb9d11454743fc79b77110b856445d1844ff2a88dca59759ca82ccd7ea23841ebbdf926cbce047cfc74986cfd5ef3279f924e9a72a52a3fba588ec3
|
data/lib/ckeditor/version.rb
CHANGED
@@ -185,17 +185,17 @@
|
|
185
185
|
// Load the content
|
186
186
|
this.setValueOf('main', 'data', oldData = editor.getData());
|
187
187
|
|
188
|
-
if (!IsStyleSheetAlreadyLoaded(
|
189
|
-
CKEDITOR.document.appendStyleSheet(
|
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(
|
193
|
-
CKEDITOR.document.appendStyleSheet(
|
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(
|
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(
|
524
|
-
CKEDITOR.document.appendStyleSheet(
|
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(
|
528
|
-
CKEDITOR.document.appendStyleSheet(
|
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(
|
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 = [
|
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(
|
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(
|
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(
|
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(
|
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(
|
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(
|
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(
|
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(
|
599
|
+
scriptFiles.push(CKEDITOR.getUrl('plugins/codemirror/js/beautify.min.js'));
|
600
600
|
}
|
601
601
|
|
602
602
|
if (config.enableSearchTools) {
|
603
|
-
scriptFiles.push(
|
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-
|
11
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|