mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-17 22:00:11 +00:00
first commit
This commit is contained in:
1
lib/ckeditor4/plugins/codemirror/css/codemirror.min.css
vendored
Executable file
1
lib/ckeditor4/plugins/codemirror/css/codemirror.min.css
vendored
Executable file
File diff suppressed because one or more lines are too long
BIN
lib/ckeditor4/plugins/codemirror/icons/AutoComplete.png
Executable file
BIN
lib/ckeditor4/plugins/codemirror/icons/AutoComplete.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
lib/ckeditor4/plugins/codemirror/icons/AutoFormat.png
Executable file
BIN
lib/ckeditor4/plugins/codemirror/icons/AutoFormat.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 644 B |
BIN
lib/ckeditor4/plugins/codemirror/icons/CommentSelectedRange.png
Executable file
BIN
lib/ckeditor4/plugins/codemirror/icons/CommentSelectedRange.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
BIN
lib/ckeditor4/plugins/codemirror/icons/SearchCode.png
Executable file
BIN
lib/ckeditor4/plugins/codemirror/icons/SearchCode.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 490 B |
BIN
lib/ckeditor4/plugins/codemirror/icons/UncommentSelectedRange.png
Executable file
BIN
lib/ckeditor4/plugins/codemirror/icons/UncommentSelectedRange.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
1
lib/ckeditor4/plugins/codemirror/js/beautify.min.js
vendored
Executable file
1
lib/ckeditor4/plugins/codemirror/js/beautify.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
1
lib/ckeditor4/plugins/codemirror/js/codemirror.addons.min.js
vendored
Executable file
1
lib/ckeditor4/plugins/codemirror/js/codemirror.addons.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
5637
lib/ckeditor4/plugins/codemirror/js/codemirror.min.js
vendored
Executable file
5637
lib/ckeditor4/plugins/codemirror/js/codemirror.min.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
1
lib/ckeditor4/plugins/codemirror/js/codemirror.modes.min.js
vendored
Executable file
1
lib/ckeditor4/plugins/codemirror/js/codemirror.modes.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
1
lib/ckeditor4/plugins/codemirror/js/codemirror.search-addons.min.js
vendored
Executable file
1
lib/ckeditor4/plugins/codemirror/js/codemirror.search-addons.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
10
lib/ckeditor4/plugins/codemirror/lang/af.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/af.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'af', {
|
||||
toolbar: 'Bron',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/ar.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/ar.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'ar', {
|
||||
toolbar: 'المصدر',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/bg.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/bg.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'bg', {
|
||||
toolbar: 'Източник',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/bn.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/bn.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'bn', {
|
||||
toolbar: 'সোর্স',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/bs.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/bs.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'bs', {
|
||||
toolbar: 'HTML kôd',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/ca.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/ca.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'ca', {
|
||||
toolbar: 'Codi font',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/cs.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/cs.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'cs', {
|
||||
toolbar: 'Zdroj',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/cy.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/cy.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'cy', {
|
||||
toolbar: 'HTML',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/da.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/da.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'da', {
|
||||
toolbar: 'Kilde',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
12
lib/ckeditor4/plugins/codemirror/lang/de.js
Executable file
12
lib/ckeditor4/plugins/codemirror/lang/de.js
Executable file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'de', {
|
||||
toolbar: 'Quellcode',
|
||||
searchCode: 'Quellcode durchsuchen',
|
||||
autoFormat: 'Auswahl formatieren',
|
||||
commentSelectedRange: 'Auswahl auskommentieren',
|
||||
uncommentSelectedRange: 'Auskommentierung entferen',
|
||||
autoCompleteToggle: 'HTML Tag Autovervollständigen de-/aktivieren'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/el.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/el.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'el', {
|
||||
toolbar: 'HTML κώδικας',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/en-au.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/en-au.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'en-au', {
|
||||
toolbar: 'Source',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/en-ca.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/en-ca.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'en-ca', {
|
||||
toolbar: 'Source',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/en-gb.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/en-gb.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'en-gb', {
|
||||
toolbar: 'Source',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
12
lib/ckeditor4/plugins/codemirror/lang/en.js
Executable file
12
lib/ckeditor4/plugins/codemirror/lang/en.js
Executable file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'en', {
|
||||
toolbar: 'Source',
|
||||
searchCode: 'Search Source',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection',
|
||||
autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/eo.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/eo.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'eo', {
|
||||
toolbar: 'Fonto',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/es.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/es.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'es', {
|
||||
toolbar: 'Fuente HTML',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/et.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/et.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'et', {
|
||||
toolbar: 'Lähtekood',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/eu.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/eu.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'eu', {
|
||||
toolbar: 'HTML Iturburua',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/fa.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/fa.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'fa', {
|
||||
toolbar: 'منبع',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/fi.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/fi.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'fi', {
|
||||
toolbar: 'Koodi',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/fo.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/fo.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'fo', {
|
||||
toolbar: 'Kelda',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/fr-ca.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/fr-ca.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'fr-ca', {
|
||||
toolbar: 'Source',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/fr.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/fr.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'fr', {
|
||||
toolbar: 'Source',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/gl.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/gl.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'gl', {
|
||||
toolbar: 'Código Fonte',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/gu.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/gu.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'gu', {
|
||||
toolbar: 'મૂળ કે પ્રાથમિક દસ્તાવેજ',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/he.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/he.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'he', {
|
||||
toolbar: 'מקור',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/hi.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/hi.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'hi', {
|
||||
toolbar: 'सोर्स',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/hr.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/hr.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'hr', {
|
||||
toolbar: 'Kôd',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/hu.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/hu.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'hu', {
|
||||
toolbar: 'Forráskód',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/is.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/is.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'is', {
|
||||
toolbar: 'Kóði',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/it.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/it.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'it', {
|
||||
toolbar: 'Codice Sorgente',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/ja.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/ja.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'ja', {
|
||||
toolbar: 'ソース',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/ka.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/ka.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'ka', {
|
||||
toolbar: 'კოდები',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/km.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/km.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'km', {
|
||||
toolbar: 'កូត',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/ko.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/ko.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'ko', {
|
||||
toolbar: '소스',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/ku.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/ku.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'ku', {
|
||||
toolbar: 'سەرچاوە',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/lt.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/lt.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'lt', {
|
||||
toolbar: 'Šaltinis',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/lv.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/lv.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'lv', {
|
||||
toolbar: 'HTML kods',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/mk.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/mk.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'mk', {
|
||||
toolbar: 'Source',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/mn.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/mn.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'mn', {
|
||||
toolbar: 'Код',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/ms.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/ms.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'ms', {
|
||||
toolbar: 'Sumber',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/nb.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/nb.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'nb', {
|
||||
toolbar: 'Kilde',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/nl.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/nl.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'nl', {
|
||||
toolbar: 'Code',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/no.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/no.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'no', {
|
||||
toolbar: 'Kilde',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/pl.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/pl.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'pl', {
|
||||
toolbar: 'Źródło dokumentu',
|
||||
autoFormat: 'Sformatuj zaznaczenie',
|
||||
commentSelectedRange: 'Zakomentuj zaznaczenie',
|
||||
uncommentSelectedRange: 'Odkomentuj zaznaczenie'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/pt-br.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/pt-br.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'pt-br', {
|
||||
toolbar: 'Código-Fonte',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/pt.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/pt.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'pt', {
|
||||
toolbar: 'Fonte',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/ro.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/ro.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'ro', {
|
||||
toolbar: 'Sursa',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/ru.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/ru.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'ru', {
|
||||
toolbar: 'Источник',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/sk.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/sk.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'sk', {
|
||||
toolbar: 'Zdroj',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/sl.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/sl.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'sl', {
|
||||
toolbar: 'Izvorna koda',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/sr-latn.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/sr-latn.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'sr-latn', {
|
||||
toolbar: 'Kôd',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/sr.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/sr.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'sr', {
|
||||
toolbar: 'Kôд',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/sv.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/sv.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'sv', {
|
||||
toolbar: 'Källa',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/th.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/th.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'th', {
|
||||
toolbar: 'ดูรหัส HTML',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/tr.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/tr.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'tr', {
|
||||
toolbar: 'Kaynak',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/ug.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/ug.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'ug', {
|
||||
toolbar: 'مەنبە',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/uk.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/uk.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'uk', {
|
||||
toolbar: 'Джерело',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/vi.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/vi.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'vi', {
|
||||
toolbar: 'Mã HTML',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/zh-cn.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/zh-cn.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'zh-cn', {
|
||||
toolbar: '源码',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
10
lib/ckeditor4/plugins/codemirror/lang/zh.js
Executable file
10
lib/ckeditor4/plugins/codemirror/lang/zh.js
Executable file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang( 'codemirror', 'zh', {
|
||||
toolbar: '原始碼',
|
||||
autoFormat: 'Format Selection',
|
||||
commentSelectedRange: 'Comment Selection',
|
||||
uncommentSelectedRange: 'Uncomment Selection'
|
||||
});
|
||||
753
lib/ckeditor4/plugins/codemirror/plugin.js
Executable file
753
lib/ckeditor4/plugins/codemirror/plugin.js
Executable file
@@ -0,0 +1,753 @@
|
||||
/*
|
||||
* The "codemirror" plugin. It's indented to enhance the
|
||||
* "sourcearea" editing mode, which displays the xhtml source code with
|
||||
* syntax highlight and line numbers.
|
||||
* Licensed under the MIT license
|
||||
* CodeMirror Plugin: http://codemirror.net/ (MIT License)
|
||||
*/
|
||||
|
||||
(function() {
|
||||
CKEDITOR.plugins.add('codemirror', {
|
||||
icons: 'SearchCode,AutoFormat,CommentSelectedRange,UncommentSelectedRange,AutoComplete',
|
||||
lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en-au,en-ca,en-gb,en,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt-br,pt,ro,ru,sk,sl,sr-latn,sr,sv,th,tr,ug,uk,vi,zh-cn,zh',
|
||||
init: function(editor) {
|
||||
var rootPath = this.path;
|
||||
// Default Config
|
||||
var defaultConfig = {
|
||||
autoCloseBrackets: true,
|
||||
autoCloseTags: true,
|
||||
autoFormatOnStart: false,
|
||||
autoFormatOnUncomment: true,
|
||||
continueComments: true,
|
||||
enableCodeFolding: true,
|
||||
enableCodeFormatting: true,
|
||||
enableSearchTools: true,
|
||||
highlightActiveLine: true,
|
||||
highlightMatches: true,
|
||||
lineNumbers: true,
|
||||
lineWrapping: true,
|
||||
mode: 'text/html',
|
||||
matchBrackets: true,
|
||||
showAutoCompleteButton: true,
|
||||
showCommentButton: true,
|
||||
showFormatButton: true,
|
||||
showSearchButton: true,
|
||||
showUncommentButton: true,
|
||||
theme: 'default',
|
||||
useBeautify: false
|
||||
};
|
||||
|
||||
// Get Config & Lang
|
||||
var config = CKEDITOR.tools.extend(defaultConfig, editor.config.codemirror || {}, true);
|
||||
var lang = editor.lang.codemirror;
|
||||
// check for old config settings for legacy support
|
||||
if (editor.config.codemirror_theme) {
|
||||
config.theme = editor.config.codemirror_theme;
|
||||
}
|
||||
if (editor.config.codemirror_autoFormatOnStart) {
|
||||
config.autoFormatOnStart = editor.config.codemirror_autoFormatOnStart;
|
||||
}
|
||||
|
||||
// Source mode isn't available in inline mode yet.
|
||||
if (editor.elementMode === CKEDITOR.ELEMENT_MODE_INLINE) {
|
||||
|
||||
// Override Source Dialog
|
||||
CKEDITOR.dialog.add('sourcedialog', function (editor) {
|
||||
var size = CKEDITOR.document.getWindow().getViewPaneSize();
|
||||
|
||||
// Make it maximum 800px wide, but still fully visible in the viewport.
|
||||
var width = Math.min(size.width - 70, 800);
|
||||
|
||||
// Make it use 2/3 of the viewport height.
|
||||
var height = size.height / 1.5;
|
||||
|
||||
// Store old editor data to avoid unnecessary setData.
|
||||
var oldData;
|
||||
|
||||
function loadCodeMirrorInline(editor, textarea) {
|
||||
var delay;
|
||||
|
||||
window["codemirror_" + editor.id] = CodeMirror.fromTextArea(textarea, {
|
||||
mode: 'text/html',
|
||||
matchBrackets: config.matchBrackets,
|
||||
workDelay: 300,
|
||||
workTime: 35,
|
||||
readOnly: editor.config.readOnly,
|
||||
lineNumbers: config.lineNumbers,
|
||||
lineWrapping: config.lineWrapping,
|
||||
autoCloseTags: config.autoCloseTags,
|
||||
autoCloseBrackets: config.autoCloseBrackets,
|
||||
highligctionMatches: config.highlightMatches,
|
||||
continueComments: config.continueComments,
|
||||
theme: config.theme,
|
||||
viewportMargin: Infinity,
|
||||
//extraKeys: {"Ctrl-Space": "autocomplete"},
|
||||
extraKeys: { "Ctrl-Q": function (codeMirror_Editor) { window["foldFunc_" + editor.id](codeMirror_Editor, codeMirror_Editor.getCursor().line); } },
|
||||
onKeyEvent: function (codeMirror_Editor, evt) {
|
||||
if (config.enableCodeFormatting) {
|
||||
var range = getSelectedRange();
|
||||
if (evt.type === "keydown" && evt.ctrlKey && evt.keyCode === 75 && !evt.shiftKey && !evt.altKey) {
|
||||
window["codemirror_" + editor.id].commentRange(true, range.from, range.to);
|
||||
} else if (evt.type === "keydown" && evt.ctrlKey && evt.keyCode === 75 && evt.shiftKey && !evt.altKey) {
|
||||
window["codemirror_" + editor.id].commentRange(false, range.from, range.to);
|
||||
if (config.autoFormatOnUncomment) {
|
||||
window["codemirror_" + editor.id].autoFormatRange(range.from, range.to);
|
||||
}
|
||||
} else if (evt.type === "keydown" && evt.ctrlKey && evt.keyCode === 75 && !evt.shiftKey && evt.altKey) {
|
||||
window["codemirror_" + editor.id].autoFormatRange(range.from, range.to);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var holderHeight = height + 'px';
|
||||
var holderWidth = width + 'px';
|
||||
|
||||
// Store config so we can access it within commands etc.
|
||||
window["codemirror_" + editor.id].config = config;
|
||||
|
||||
if (config.autoFormatOnStart) {
|
||||
if (config.useBeautify) {
|
||||
var indent_size = 4;
|
||||
var indent_char = ' ';
|
||||
var brace_style = 'collapse'; //collapse, expand, end-expand
|
||||
|
||||
var source = window["codemirror_" + editor.id].getValue();
|
||||
|
||||
window["codemirror_" + editor.id].setValue(html_beautify(source, indent_size, indent_char, 120, brace_style));
|
||||
} else {
|
||||
window["codemirror_" + editor.id].autoFormatAll({
|
||||
line: 0,
|
||||
ch: 0
|
||||
}, {
|
||||
line: window["codemirror_" + editor.id].lineCount(),
|
||||
ch: 0
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function getSelectedRange() {
|
||||
return {
|
||||
from: window["codemirror_" + editor.id].getCursor(true),
|
||||
to: window["codemirror_" + editor.id].getCursor(false)
|
||||
};
|
||||
}
|
||||
|
||||
window["codemirror_" + editor.id].on("change", function () {
|
||||
clearTimeout(delay);
|
||||
delay = setTimeout(function () {
|
||||
window["codemirror_" + editor.id].save();
|
||||
}, 300);
|
||||
});
|
||||
|
||||
window["codemirror_" + editor.id].setSize(holderWidth, holderHeight);
|
||||
|
||||
// Enable Code Folding (Requires 'lineNumbers' to be set to 'true')
|
||||
if (config.lineNumbers && config.enableCodeFolding) {
|
||||
window["codemirror_" + editor.id].on("gutterClick", window["foldFunc_" + editor.id]);
|
||||
}
|
||||
// Highlight Active Line
|
||||
if (config.highlightActiveLine) {
|
||||
window["codemirror_" + editor.id].hlLine = window["codemirror_" + editor.id].addLineClass(0, "background", "activeline");
|
||||
window["codemirror_" + editor.id].on("cursorActivity", function () {
|
||||
var cur = window["codemirror_" + editor.id].getLineHandle(window["codemirror_" + editor.id].getCursor().line);
|
||||
if (cur != window["codemirror_" + editor.id].hlLine) {
|
||||
window["codemirror_" + editor.id].removeLineClass(window["codemirror_" + editor.id].hlLine, "background", "activeline");
|
||||
window["codemirror_" + editor.id].hlLine = window["codemirror_" + editor.id].addLineClass(cur, "background", "activeline");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Run config.onLoad callback, if present.
|
||||
if (typeof config.onLoad === 'function') {
|
||||
config.onLoad(window["codemirror_" + editor.id], editor);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
title: editor.lang.sourcedialog.title,
|
||||
minWidth: width,
|
||||
minHeight: height,
|
||||
resizable : CKEDITOR.DIALOG_RESIZE_NONE,
|
||||
onShow: function () {
|
||||
// Set Elements
|
||||
this.getContentElement('main', 'data').focus();
|
||||
this.getContentElement('main', 'AutoComplete').setValue(config.autoCloseTags, true);
|
||||
|
||||
var textArea = this.getContentElement('main', 'data').getInputElement().$;
|
||||
|
||||
// Load the content
|
||||
this.setValueOf('main', 'data', oldData = editor.getData());
|
||||
|
||||
if (typeof (CodeMirror) == 'undefined') {
|
||||
|
||||
CKEDITOR.document.appendStyleSheet(rootPath + 'css/codemirror.min.css');
|
||||
|
||||
if (config.theme.length && config.theme != 'default') {
|
||||
CKEDITOR.document.appendStyleSheet(rootPath + 'theme/' + config.theme + '.css');
|
||||
}
|
||||
|
||||
CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.min.js', function () {
|
||||
|
||||
CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), function () {
|
||||
loadCodeMirrorInline(editor, textArea);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
} else {
|
||||
loadCodeMirrorInline(editor, textArea);
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
onCancel: function() {
|
||||
window["codemirror_" + editor.id].toTextArea();
|
||||
|
||||
// Free Memory on destroy
|
||||
window["editable_" + editor.id] = null;
|
||||
window["codemirror_" + editor.id] = null;
|
||||
},
|
||||
onOk: (function () {
|
||||
|
||||
function setData(newData) {
|
||||
var that = this;
|
||||
|
||||
editor.setData(newData, function () {
|
||||
that.hide();
|
||||
|
||||
// Ensure correct selection.
|
||||
var range = editor.createRange();
|
||||
range.moveToElementEditStart(editor.editable());
|
||||
range.select();
|
||||
});
|
||||
}
|
||||
|
||||
return function () {
|
||||
window["codemirror_" + editor.id].toTextArea();
|
||||
|
||||
// Free Memory on destroy
|
||||
window["editable_" + editor.id] = null;
|
||||
window["codemirror_" + editor.id] = null;
|
||||
|
||||
// Remove CR from input data for reliable comparison with editor data.
|
||||
var newData = this.getValueOf('main', 'data').replace(/\r/g, '');
|
||||
|
||||
// Avoid unnecessary setData. Also preserve selection
|
||||
// when user changed his mind and goes back to wysiwyg editing.
|
||||
if (newData === oldData)
|
||||
return true;
|
||||
|
||||
// Set data asynchronously to avoid errors in IE.
|
||||
CKEDITOR.env.ie ?
|
||||
CKEDITOR.tools.setTimeout(setData, 0, this, newData)
|
||||
:
|
||||
setData.call(this, newData);
|
||||
|
||||
// Don't let the dialog close before setData is over.
|
||||
return false;
|
||||
};
|
||||
})(),
|
||||
|
||||
contents: [{
|
||||
id: 'main',
|
||||
label: editor.lang.sourcedialog.title,
|
||||
elements: [
|
||||
{
|
||||
type: 'hbox',
|
||||
style: 'width: 80px;margin:0;',
|
||||
widths: ['20px', '20px', '20px', '20px'],
|
||||
children: [
|
||||
{
|
||||
type: 'button',
|
||||
id: 'searchCode',
|
||||
label: '',
|
||||
title: lang.searchCode,
|
||||
'class': 'searchCodeButton',
|
||||
onClick: function() {
|
||||
CodeMirror.commands.find(window["codemirror_" + editor.id]);
|
||||
}
|
||||
}, {
|
||||
type: 'button',
|
||||
id: 'autoFormat',
|
||||
label: '',
|
||||
title: lang.autoFormat,
|
||||
'class': 'autoFormat',
|
||||
onClick: function() {
|
||||
var range = {
|
||||
from: window["codemirror_" + editor.id].getCursor(true),
|
||||
to: window["codemirror_" + editor.id].getCursor(false)
|
||||
};
|
||||
window["codemirror_" + editor.id].autoFormatRange(range.from, range.to);
|
||||
}
|
||||
}, {
|
||||
type: 'button',
|
||||
id: 'CommentSelectedRange',
|
||||
label: '',
|
||||
title: lang.commentSelectedRange,
|
||||
'class': 'CommentSelectedRange',
|
||||
onClick: function () {
|
||||
var range = {
|
||||
from: window["codemirror_" + editor.id].getCursor(true),
|
||||
to: window["codemirror_" + editor.id].getCursor(false)
|
||||
};
|
||||
window["codemirror_" + editor.id].commentRange(true, range.from, range.to);
|
||||
}
|
||||
}, {
|
||||
type: 'button',
|
||||
id: 'UncommentSelectedRange',
|
||||
label: '',
|
||||
title: lang.uncommentSelectedRange,
|
||||
'class': 'UncommentSelectedRange',
|
||||
onClick: function () {
|
||||
var range = {
|
||||
from: window["codemirror_" + editor.id].getCursor(true),
|
||||
to: window["codemirror_" + editor.id].getCursor(false)
|
||||
};
|
||||
window["codemirror_" + editor.id].commentRange(false, range.from, range.to);
|
||||
if (window["codemirror_" + editor.id].config.autoFormatOnUncomment) {
|
||||
window["codemirror_" + editor.id].autoFormatRange(range.from, range.to);
|
||||
}
|
||||
}
|
||||
}]
|
||||
}, {
|
||||
type: 'checkbox',
|
||||
id: 'AutoComplete',
|
||||
label: lang.autoCompleteToggle,
|
||||
title: lang.autoCompleteToggle,
|
||||
onChange: function () {
|
||||
window["codemirror_" + editor.id].setOption("autoCloseTags", this.getValue());
|
||||
}
|
||||
}, {
|
||||
type: 'textarea',
|
||||
id: 'data',
|
||||
dir: 'ltr',
|
||||
inputStyle: 'cursor:auto;' +
|
||||
'width:' + width + 'px;' +
|
||||
'height:' + height + 'px;' +
|
||||
'tab-size:4;' +
|
||||
'text-align:left;',
|
||||
'class': 'cke_source cke_enable_context_menu',
|
||||
}
|
||||
]
|
||||
}]
|
||||
};
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var sourcearea = CKEDITOR.plugins.sourcearea;
|
||||
editor.addMode('source', function(callback) {
|
||||
if (typeof (CodeMirror) == 'undefined') {
|
||||
|
||||
CKEDITOR.document.appendStyleSheet(rootPath + 'css/codemirror.min.css');
|
||||
|
||||
if (config.theme.length && config.theme != 'default') {
|
||||
CKEDITOR.document.appendStyleSheet(rootPath + 'theme/' + config.theme + '.css');
|
||||
}
|
||||
|
||||
CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.min.js', function() {
|
||||
|
||||
CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), function() {
|
||||
loadCodeMirror(editor);
|
||||
callback();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
} else {
|
||||
loadCodeMirror(editor);
|
||||
callback();
|
||||
}
|
||||
});
|
||||
|
||||
function getCodeMirrorScripts() {
|
||||
var scriptFiles = [rootPath + 'js/codemirror.modes.min.js', rootPath + 'js/codemirror.addons.min.js'];
|
||||
|
||||
if (config.useBeautify) {
|
||||
scriptFiles.push(rootPath + 'js/beautify.min.js');
|
||||
}
|
||||
|
||||
if (config.enableSearchTools) {
|
||||
scriptFiles.push(rootPath + 'js/codemirror.search-addons.min.js');
|
||||
}
|
||||
return scriptFiles;
|
||||
}
|
||||
|
||||
function loadCodeMirror(editor) {
|
||||
var contentsSpace = editor.ui.space('contents'),
|
||||
textarea = contentsSpace.getDocument().createElement('textarea');
|
||||
|
||||
textarea.setStyles(
|
||||
CKEDITOR.tools.extend({
|
||||
// IE7 has overflow the <textarea> from wrapping table cell.
|
||||
width: CKEDITOR.env.ie7Compat ? '99%' : '100%',
|
||||
height: '100%',
|
||||
resize: 'none',
|
||||
outline: 'none',
|
||||
'text-align': 'left'
|
||||
},
|
||||
CKEDITOR.tools.cssVendorPrefix('tab-size', editor.config.sourceAreaTabSize || 4)));
|
||||
var ariaLabel = [editor.lang.editor, editor.name].join(',');
|
||||
textarea.setAttributes({
|
||||
dir: 'ltr',
|
||||
tabIndex: CKEDITOR.env.webkit ? -1 : editor.tabIndex,
|
||||
'role': 'textbox',
|
||||
'aria-label': ariaLabel
|
||||
});
|
||||
textarea.addClass('cke_source cke_reset cke_enable_context_menu');
|
||||
editor.ui.space('contents').append(textarea);
|
||||
window["editable_" + editor.id] = editor.editable(new sourceEditable(editor, textarea));
|
||||
// Fill the textarea with the current editor data.
|
||||
window["editable_" + editor.id].setData(editor.getData(1));
|
||||
window["editable_" + editor.id].editorID = editor.id;
|
||||
editor.fire('ariaWidget', this);
|
||||
var delay;
|
||||
var sourceAreaElement = window["editable_" + editor.id],
|
||||
holderElement = sourceAreaElement.getParent();
|
||||
|
||||
//codemirror = editor.id;
|
||||
|
||||
/*CodeMirror.commands.autocomplete = function(cm) {
|
||||
CodeMirror.showHint(cm, CodeMirror.htmlHint);
|
||||
};*/
|
||||
|
||||
// Enable Code Folding (Requires 'lineNumbers' to be set to 'true')
|
||||
if (config.lineNumbers && config.enableCodeFolding) {
|
||||
window["foldFunc_" + editor.id] = CodeMirror.newFoldFunction(CodeMirror.tagRangeFinder);
|
||||
}
|
||||
|
||||
window["codemirror_" + editor.id] = CodeMirror.fromTextArea(sourceAreaElement.$, {
|
||||
mode: config.mode,
|
||||
matchBrackets: config.matchBrackets,
|
||||
workDelay: 300,
|
||||
workTime: 35,
|
||||
readOnly: editor.config.readOnly,
|
||||
lineNumbers: config.lineNumbers,
|
||||
lineWrapping: config.lineWrapping,
|
||||
autoCloseTags: config.autoCloseTags,
|
||||
autoCloseBrackets: config.autoCloseBrackets,
|
||||
highlightSelectionMatches: config.highlightMatches,
|
||||
continueComments: config.continueComments,
|
||||
theme: config.theme,
|
||||
//extraKeys: {"Ctrl-Space": "autocomplete"},
|
||||
extraKeys: { "Ctrl-Q": function(codeMirror_Editor) { window["foldFunc_" + editor.id](codeMirror_Editor, codeMirror_Editor.getCursor().line); } },
|
||||
onKeyEvent: function(codeMirror_Editor, evt) {
|
||||
if (config.enableCodeFormatting) {
|
||||
var range = getSelectedRange();
|
||||
if (evt.type === "keydown" && evt.ctrlKey && evt.keyCode === 75 && !evt.shiftKey && !evt.altKey) {
|
||||
window["codemirror_" + editor.id].commentRange(true, range.from, range.to);
|
||||
} else if (evt.type === "keydown" && evt.ctrlKey && evt.keyCode === 75 && evt.shiftKey && !evt.altKey) {
|
||||
window["codemirror_" + editor.id].commentRange(false, range.from, range.to);
|
||||
if (config.autoFormatOnUncomment) {
|
||||
window["codemirror_" + editor.id].autoFormatRange(range.from, range.to);
|
||||
}
|
||||
} else if (evt.type === "keydown" && evt.ctrlKey && evt.keyCode === 75 && !evt.shiftKey && evt.altKey) {
|
||||
window["codemirror_" + editor.id].autoFormatRange(range.from, range.to);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var holderHeight = holderElement.$.clientHeight + 'px';
|
||||
var holderWidth = holderElement.$.clientWidth + 'px';
|
||||
|
||||
// Store config so we can access it within commands etc.
|
||||
window["codemirror_" + editor.id].config = config;
|
||||
if (config.autoFormatOnStart) {
|
||||
if (config.useBeautify) {
|
||||
var indent_size = 4;
|
||||
var indent_char = ' ';
|
||||
var brace_style = 'collapse'; //collapse, expand, end-expand
|
||||
|
||||
var source = window["codemirror_" + editor.id].getValue();
|
||||
|
||||
window["codemirror_" + editor.id].setValue(html_beautify(source, indent_size, indent_char, 120, brace_style));
|
||||
} else {
|
||||
window["codemirror_" + editor.id].autoFormatAll({
|
||||
line: 0,
|
||||
ch: 0
|
||||
}, {
|
||||
line: window["codemirror_" + editor.id].lineCount(),
|
||||
ch: 0
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function getSelectedRange() {
|
||||
return {
|
||||
from: window["codemirror_" + editor.id].getCursor(true),
|
||||
to: window["codemirror_" + editor.id].getCursor(false)
|
||||
};
|
||||
}
|
||||
|
||||
window["codemirror_" + editor.id].on("change", function(cm, change) {
|
||||
clearTimeout(delay);
|
||||
delay = setTimeout(function() {
|
||||
window["codemirror_" + editor.id].save();
|
||||
}, 300);
|
||||
});
|
||||
window["codemirror_" + editor.id].setSize(holderWidth, holderHeight);
|
||||
|
||||
// Enable Code Folding (Requires 'lineNumbers' to be set to 'true')
|
||||
if (config.lineNumbers && config.enableCodeFolding) {
|
||||
window["codemirror_" + editor.id].on("gutterClick", window["foldFunc_" + editor.id]);
|
||||
}
|
||||
// Highlight Active Line
|
||||
if (config.highlightActiveLine) {
|
||||
window["codemirror_" + editor.id].hlLine = window["codemirror_" + editor.id].addLineClass(0, "background", "activeline");
|
||||
window["codemirror_" + editor.id].on("cursorActivity", function() {
|
||||
var cur = window["codemirror_" + editor.id].getLineHandle(window["codemirror_" + editor.id].getCursor().line);
|
||||
if (cur != window["codemirror_" + editor.id].hlLine) {
|
||||
window["codemirror_" + editor.id].removeLineClass(window["codemirror_" + editor.id].hlLine, "background", "activeline");
|
||||
window["codemirror_" + editor.id].hlLine = window["codemirror_" + editor.id].addLineClass(cur, "background", "activeline");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Run config.onLoad callback, if present.
|
||||
if (typeof config.onLoad === 'function') {
|
||||
config.onLoad(window["codemirror_" + editor.id], editor);
|
||||
}
|
||||
}
|
||||
|
||||
editor.addCommand('source', sourcearea.commands.source);
|
||||
if (editor.ui.addButton) {
|
||||
editor.ui.addButton('Source', {
|
||||
label: editor.lang.codemirror.toolbar,
|
||||
command: 'source',
|
||||
toolbar: 'mode,10'
|
||||
});
|
||||
}
|
||||
if (config.enableCodeFormatting) {
|
||||
editor.addCommand('searchCode', sourcearea.commands.searchCode);
|
||||
editor.addCommand('autoFormat', sourcearea.commands.autoFormat);
|
||||
editor.addCommand('commentSelectedRange', sourcearea.commands.commentSelectedRange);
|
||||
editor.addCommand('uncommentSelectedRange', sourcearea.commands.uncommentSelectedRange);
|
||||
editor.addCommand('autoCompleteToggle', sourcearea.commands.autoCompleteToggle);
|
||||
|
||||
if (editor.ui.addButton) {
|
||||
if (config.showFormatButton || config.showCommentButton || config.showUncommentButton || config.showSearchButton) {
|
||||
editor.ui.add('-', CKEDITOR.UI_SEPARATOR, { toolbar: 'mode,30' });
|
||||
}
|
||||
if (config.showSearchButton && config.enableSearchTools) {
|
||||
editor.ui.addButton('searchCode', {
|
||||
label: lang.searchCode,
|
||||
command: 'searchCode',
|
||||
toolbar: 'mode,40'
|
||||
});
|
||||
}
|
||||
if (config.showFormatButton) {
|
||||
editor.ui.addButton('autoFormat', {
|
||||
label: lang.autoFormat,
|
||||
command: 'autoFormat',
|
||||
toolbar: 'mode,50'
|
||||
});
|
||||
}
|
||||
if (config.showCommentButton) {
|
||||
editor.ui.addButton('CommentSelectedRange', {
|
||||
label: lang.commentSelectedRange,
|
||||
command: 'commentSelectedRange',
|
||||
toolbar: 'mode,60'
|
||||
});
|
||||
}
|
||||
if (config.showUncommentButton) {
|
||||
editor.ui.addButton('UncommentSelectedRange', {
|
||||
label: lang.uncommentSelectedRange,
|
||||
command: 'uncommentSelectedRange',
|
||||
toolbar: 'mode,70'
|
||||
});
|
||||
}
|
||||
if (config.showAutoCompleteButton) {
|
||||
editor.ui.addButton('AutoComplete', {
|
||||
label: lang.autoCompleteToggle,
|
||||
command: 'autoCompleteToggle',
|
||||
toolbar: 'mode,80'
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
editor.on('mode', function () {
|
||||
editor.getCommand('source').setState(editor.mode === 'source' ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF);
|
||||
|
||||
if (editor.mode === 'source') {
|
||||
editor.getCommand('autoCompleteToggle').setState(window["codemirror_" + editor.id].config.autoCloseTags ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF);
|
||||
}
|
||||
|
||||
});
|
||||
editor.on('resize', function() {
|
||||
if (window["editable_" + editor.id] && editor.mode === 'source') {
|
||||
var holderElement = window["editable_" + editor.id].getParent();
|
||||
var holderHeight = holderElement.$.clientHeight + 'px';
|
||||
var holderWidth = holderElement.$.clientWidth + 'px';
|
||||
window["codemirror_" + editor.id].setSize(holderWidth, holderHeight);
|
||||
}
|
||||
});
|
||||
|
||||
editor.on('readOnly', function () {
|
||||
window["codemirror_" + editor.id].setOption("readOnly", this.readOnly);
|
||||
|
||||
});
|
||||
|
||||
var selectAllCommand = editor.commands.selectAll;
|
||||
|
||||
if (selectAllCommand != null) {
|
||||
selectAllCommand.on('exec', function () {
|
||||
if (editor.mode === 'source') {
|
||||
window["codemirror_" + editor.id].setSelection({
|
||||
line: 0,
|
||||
ch: 0
|
||||
}, {
|
||||
line: window["codemirror_" + editor.id].lineCount(),
|
||||
ch: 0
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
var sourceEditable = CKEDITOR.tools.createClass({
|
||||
base: CKEDITOR.editable,
|
||||
proto: {
|
||||
setData: function(data) {
|
||||
|
||||
this.setValue(data);
|
||||
|
||||
if (this.codeMirror != null) {
|
||||
this.codeMirror.setValue(data);
|
||||
}
|
||||
|
||||
this.editor.fire('dataReady');
|
||||
},
|
||||
getData: function() {
|
||||
return this.getValue();
|
||||
},
|
||||
// Insertions are not supported in source editable.
|
||||
insertHtml: function() {
|
||||
},
|
||||
insertElement: function() {
|
||||
},
|
||||
insertText: function() {
|
||||
},
|
||||
// Read-only support for textarea.
|
||||
setReadOnly: function(isReadOnly) {
|
||||
this[(isReadOnly ? 'set' : 'remove') + 'Attribute']('readOnly', 'readonly');
|
||||
},
|
||||
editorID: null,
|
||||
detach: function() {
|
||||
window["codemirror_" + this.editorID].toTextArea();
|
||||
|
||||
// Free Memory on destroy
|
||||
window["editable_" + this.editorID] = null;
|
||||
window["codemirror_" + this.editorID] = null;
|
||||
|
||||
sourceEditable.baseProto.detach.call(this);
|
||||
|
||||
this.clearCustomData();
|
||||
this.remove();
|
||||
}
|
||||
}
|
||||
});
|
||||
})();
|
||||
CKEDITOR.plugins.sourcearea = {
|
||||
commands: {
|
||||
source: {
|
||||
modes: {
|
||||
wysiwyg: 1,
|
||||
source: 1
|
||||
},
|
||||
editorFocus: false,
|
||||
readOnly: 1,
|
||||
exec: function(editor) {
|
||||
if (editor.mode === 'wysiwyg') {
|
||||
editor.fire('saveSnapshot');
|
||||
}
|
||||
editor.getCommand('source').setState(CKEDITOR.TRISTATE_DISABLED);
|
||||
editor.setMode(editor.mode === 'source' ? 'wysiwyg' : 'source');
|
||||
},
|
||||
canUndo: false
|
||||
},
|
||||
searchCode: {
|
||||
modes: {
|
||||
wysiwyg: 0,
|
||||
source: 1
|
||||
},
|
||||
editorFocus: false,
|
||||
readOnly: 1,
|
||||
exec: function(editor) {
|
||||
CodeMirror.commands.find(window["codemirror_" + editor.id]);
|
||||
},
|
||||
canUndo: true
|
||||
},
|
||||
autoFormat: {
|
||||
modes: {
|
||||
wysiwyg: 0,
|
||||
source: 1
|
||||
},
|
||||
editorFocus: false,
|
||||
readOnly: 1,
|
||||
exec: function(editor) {
|
||||
var range = {
|
||||
from: window["codemirror_" + editor.id].getCursor(true),
|
||||
to: window["codemirror_" + editor.id].getCursor(false)
|
||||
};
|
||||
window["codemirror_" + editor.id].autoFormatRange(range.from, range.to);
|
||||
},
|
||||
canUndo: true
|
||||
},
|
||||
commentSelectedRange: {
|
||||
modes: {
|
||||
wysiwyg: 0,
|
||||
source: 1
|
||||
},
|
||||
editorFocus: false,
|
||||
readOnly: 1,
|
||||
exec: function(editor) {
|
||||
var range = {
|
||||
from: window["codemirror_" + editor.id].getCursor(true),
|
||||
to: window["codemirror_" + editor.id].getCursor(false)
|
||||
};
|
||||
window["codemirror_" + editor.id].commentRange(true, range.from, range.to);
|
||||
},
|
||||
canUndo: true
|
||||
},
|
||||
uncommentSelectedRange: {
|
||||
modes: {
|
||||
wysiwyg: 0,
|
||||
source: 1
|
||||
},
|
||||
editorFocus: false,
|
||||
readOnly: 1,
|
||||
exec: function(editor) {
|
||||
var range = {
|
||||
from: window["codemirror_" + editor.id].getCursor(true),
|
||||
to: window["codemirror_" + editor.id].getCursor(false)
|
||||
};
|
||||
window["codemirror_" + editor.id].commentRange(false, range.from, range.to);
|
||||
if (window["codemirror_" + editor.id].config.autoFormatOnUncomment) {
|
||||
window["codemirror_" + editor.id].autoFormatRange(range.from, range.to);
|
||||
}
|
||||
},
|
||||
canUndo: true
|
||||
},
|
||||
autoCompleteToggle: {
|
||||
modes: {
|
||||
wysiwyg: 0,
|
||||
source: 1
|
||||
},
|
||||
editorFocus: false,
|
||||
readOnly: 1,
|
||||
exec: function (editor) {
|
||||
if (this.state == CKEDITOR.TRISTATE_ON) {
|
||||
window["codemirror_" + editor.id].setOption("autoCloseTags", false);
|
||||
} else if (this.state == CKEDITOR.TRISTATE_OFF) {
|
||||
window["codemirror_" + editor.id].setOption("autoCloseTags", true);
|
||||
}
|
||||
|
||||
this.toggleState();
|
||||
},
|
||||
canUndo: true
|
||||
}
|
||||
}
|
||||
};
|
||||
5
lib/ckeditor4/plugins/codemirror/theme/ambiance-mobile.css
vendored
Executable file
5
lib/ckeditor4/plugins/codemirror/theme/ambiance-mobile.css
vendored
Executable file
@@ -0,0 +1,5 @@
|
||||
.cm-s-ambiance.CodeMirror {
|
||||
-webkit-box-shadow: none;
|
||||
-moz-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
75
lib/ckeditor4/plugins/codemirror/theme/ambiance.css
vendored
Executable file
75
lib/ckeditor4/plugins/codemirror/theme/ambiance.css
vendored
Executable file
File diff suppressed because one or more lines are too long
25
lib/ckeditor4/plugins/codemirror/theme/blackboard.css
vendored
Executable file
25
lib/ckeditor4/plugins/codemirror/theme/blackboard.css
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
/* Port of TextMate's Blackboard theme */
|
||||
|
||||
.cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; }
|
||||
.cm-s-blackboard .CodeMirror-selected { background: #253B76 !important; }
|
||||
.cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; }
|
||||
.cm-s-blackboard .CodeMirror-linenumber { color: #888; }
|
||||
.cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7 !important; }
|
||||
|
||||
.cm-s-blackboard .cm-keyword { color: #FBDE2D; }
|
||||
.cm-s-blackboard .cm-atom { color: #D8FA3C; }
|
||||
.cm-s-blackboard .cm-number { color: #D8FA3C; }
|
||||
.cm-s-blackboard .cm-def { color: #8DA6CE; }
|
||||
.cm-s-blackboard .cm-variable { color: #FF6400; }
|
||||
.cm-s-blackboard .cm-operator { color: #FBDE2D;}
|
||||
.cm-s-blackboard .cm-comment { color: #AEAEAE; }
|
||||
.cm-s-blackboard .cm-string { color: #61CE3C; }
|
||||
.cm-s-blackboard .cm-string-2 { color: #61CE3C; }
|
||||
.cm-s-blackboard .cm-meta { color: #D8FA3C; }
|
||||
.cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; }
|
||||
.cm-s-blackboard .cm-builtin { color: #8DA6CE; }
|
||||
.cm-s-blackboard .cm-tag { color: #8DA6CE; }
|
||||
.cm-s-blackboard .cm-attribute { color: #8DA6CE; }
|
||||
.cm-s-blackboard .cm-header { color: #FF6400; }
|
||||
.cm-s-blackboard .cm-hr { color: #AEAEAE; }
|
||||
.cm-s-blackboard .cm-link { color: #8DA6CE; }
|
||||
18
lib/ckeditor4/plugins/codemirror/theme/cobalt.css
vendored
Executable file
18
lib/ckeditor4/plugins/codemirror/theme/cobalt.css
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
.cm-s-cobalt.CodeMirror { background: #002240; color: white; }
|
||||
.cm-s-cobalt div.CodeMirror-selected { background: #b36539 !important; }
|
||||
.cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
|
||||
.cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; }
|
||||
.cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white !important; }
|
||||
|
||||
.cm-s-cobalt span.cm-comment { color: #08f; }
|
||||
.cm-s-cobalt span.cm-atom { color: #845dc4; }
|
||||
.cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; }
|
||||
.cm-s-cobalt span.cm-keyword { color: #ffee80; }
|
||||
.cm-s-cobalt span.cm-string { color: #3ad900; }
|
||||
.cm-s-cobalt span.cm-meta { color: #ff9d00; }
|
||||
.cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; }
|
||||
.cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; }
|
||||
.cm-s-cobalt span.cm-error { color: #9d1e15; }
|
||||
.cm-s-cobalt span.cm-bracket { color: #d8d8d8; }
|
||||
.cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; }
|
||||
.cm-s-cobalt span.cm-link { color: #845dc4; }
|
||||
25
lib/ckeditor4/plugins/codemirror/theme/eclipse.css
vendored
Executable file
25
lib/ckeditor4/plugins/codemirror/theme/eclipse.css
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
.cm-s-eclipse span.cm-meta {color: #FF1717;}
|
||||
.cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; }
|
||||
.cm-s-eclipse span.cm-atom {color: #219;}
|
||||
.cm-s-eclipse span.cm-number {color: #164;}
|
||||
.cm-s-eclipse span.cm-def {color: #00f;}
|
||||
.cm-s-eclipse span.cm-variable {color: black;}
|
||||
.cm-s-eclipse span.cm-variable-2 {color: #0000C0;}
|
||||
.cm-s-eclipse span.cm-variable-3 {color: #0000C0;}
|
||||
.cm-s-eclipse span.cm-property {color: black;}
|
||||
.cm-s-eclipse span.cm-operator {color: black;}
|
||||
.cm-s-eclipse span.cm-comment {color: #3F7F5F;}
|
||||
.cm-s-eclipse span.cm-string {color: #2A00FF;}
|
||||
.cm-s-eclipse span.cm-string-2 {color: #f50;}
|
||||
.cm-s-eclipse span.cm-error {color: #f00;}
|
||||
.cm-s-eclipse span.cm-qualifier {color: #555;}
|
||||
.cm-s-eclipse span.cm-builtin {color: #30a;}
|
||||
.cm-s-eclipse span.cm-bracket {color: #cc7;}
|
||||
.cm-s-eclipse span.cm-tag {color: #170;}
|
||||
.cm-s-eclipse span.cm-attribute {color: #00c;}
|
||||
.cm-s-eclipse span.cm-link {color: #219;}
|
||||
|
||||
.cm-s-eclipse .CodeMirror-matchingbracket {
|
||||
outline:1px solid grey;
|
||||
color:black !important;
|
||||
}
|
||||
10
lib/ckeditor4/plugins/codemirror/theme/elegant.css
vendored
Executable file
10
lib/ckeditor4/plugins/codemirror/theme/elegant.css
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
.cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;}
|
||||
.cm-s-elegant span.cm-comment {color: #262; font-style: italic; line-height: 1em;}
|
||||
.cm-s-elegant span.cm-meta {color: #555; font-style: italic; line-height: 1em;}
|
||||
.cm-s-elegant span.cm-variable {color: black;}
|
||||
.cm-s-elegant span.cm-variable-2 {color: #b11;}
|
||||
.cm-s-elegant span.cm-qualifier {color: #555;}
|
||||
.cm-s-elegant span.cm-keyword {color: #730;}
|
||||
.cm-s-elegant span.cm-builtin {color: #30a;}
|
||||
.cm-s-elegant span.cm-error {background-color: #fdd;}
|
||||
.cm-s-elegant span.cm-link {color: #762;}
|
||||
21
lib/ckeditor4/plugins/codemirror/theme/erlang-dark.css
vendored
Executable file
21
lib/ckeditor4/plugins/codemirror/theme/erlang-dark.css
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
.cm-s-erlang-dark.CodeMirror { background: #002240; color: white; }
|
||||
.cm-s-erlang-dark div.CodeMirror-selected { background: #b36539 !important; }
|
||||
.cm-s-erlang-dark .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
|
||||
.cm-s-erlang-dark .CodeMirror-linenumber { color: #d0d0d0; }
|
||||
.cm-s-erlang-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
|
||||
|
||||
.cm-s-erlang-dark span.cm-atom { color: #845dc4; }
|
||||
.cm-s-erlang-dark span.cm-attribute { color: #ff80e1; }
|
||||
.cm-s-erlang-dark span.cm-bracket { color: #ff9d00; }
|
||||
.cm-s-erlang-dark span.cm-builtin { color: #eaa; }
|
||||
.cm-s-erlang-dark span.cm-comment { color: #77f; }
|
||||
.cm-s-erlang-dark span.cm-def { color: #e7a; }
|
||||
.cm-s-erlang-dark span.cm-error { color: #9d1e15; }
|
||||
.cm-s-erlang-dark span.cm-keyword { color: #ffee80; }
|
||||
.cm-s-erlang-dark span.cm-meta { color: #50fefe; }
|
||||
.cm-s-erlang-dark span.cm-number { color: #ffd0d0; }
|
||||
.cm-s-erlang-dark span.cm-operator { color: #d11; }
|
||||
.cm-s-erlang-dark span.cm-string { color: #3ad900; }
|
||||
.cm-s-erlang-dark span.cm-tag { color: #9effff; }
|
||||
.cm-s-erlang-dark span.cm-variable { color: #50fe50; }
|
||||
.cm-s-erlang-dark span.cm-variable-2 { color: #e0e; }
|
||||
44
lib/ckeditor4/plugins/codemirror/theme/lesser-dark.css
vendored
Executable file
44
lib/ckeditor4/plugins/codemirror/theme/lesser-dark.css
vendored
Executable file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
http://lesscss.org/ dark theme
|
||||
Ported to CodeMirror by Peter Kroon
|
||||
*/
|
||||
.cm-s-lesser-dark {
|
||||
line-height: 1.3em;
|
||||
}
|
||||
.cm-s-lesser-dark {
|
||||
font-family: 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Monaco', Courier, monospace !important;
|
||||
}
|
||||
|
||||
.cm-s-lesser-dark.CodeMirror { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; }
|
||||
.cm-s-lesser-dark div.CodeMirror-selected {background: #45443B !important;} /* 33322B*/
|
||||
.cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
|
||||
.cm-s-lesser-dark pre { padding: 0 8px; }/*editable code holder*/
|
||||
|
||||
div.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/
|
||||
|
||||
.cm-s-lesser-dark .CodeMirror-gutters { background: #262626; border-right:1px solid #aaa; }
|
||||
.cm-s-lesser-dark .CodeMirror-linenumber { color: #777; }
|
||||
|
||||
.cm-s-lesser-dark span.cm-keyword { color: #599eff; }
|
||||
.cm-s-lesser-dark span.cm-atom { color: #C2B470; }
|
||||
.cm-s-lesser-dark span.cm-number { color: #B35E4D; }
|
||||
.cm-s-lesser-dark span.cm-def {color: white;}
|
||||
.cm-s-lesser-dark span.cm-variable { color:#D9BF8C; }
|
||||
.cm-s-lesser-dark span.cm-variable-2 { color: #669199; }
|
||||
.cm-s-lesser-dark span.cm-variable-3 { color: white; }
|
||||
.cm-s-lesser-dark span.cm-property {color: #92A75C;}
|
||||
.cm-s-lesser-dark span.cm-operator {color: #92A75C;}
|
||||
.cm-s-lesser-dark span.cm-comment { color: #666; }
|
||||
.cm-s-lesser-dark span.cm-string { color: #BCD279; }
|
||||
.cm-s-lesser-dark span.cm-string-2 {color: #f50;}
|
||||
.cm-s-lesser-dark span.cm-meta { color: #738C73; }
|
||||
.cm-s-lesser-dark span.cm-error { color: #9d1e15; }
|
||||
.cm-s-lesser-dark span.cm-qualifier {color: #555;}
|
||||
.cm-s-lesser-dark span.cm-builtin { color: #ff9e59; }
|
||||
.cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; }
|
||||
.cm-s-lesser-dark span.cm-tag { color: #669199; }
|
||||
.cm-s-lesser-dark span.cm-attribute {color: #00c;}
|
||||
.cm-s-lesser-dark span.cm-header {color: #a0a;}
|
||||
.cm-s-lesser-dark span.cm-quote {color: #090;}
|
||||
.cm-s-lesser-dark span.cm-hr {color: #999;}
|
||||
.cm-s-lesser-dark span.cm-link {color: #00c;}
|
||||
52
lib/ckeditor4/plugins/codemirror/theme/midnight.css
vendored
Executable file
52
lib/ckeditor4/plugins/codemirror/theme/midnight.css
vendored
Executable file
@@ -0,0 +1,52 @@
|
||||
/* Based on the theme at http://bonsaiden.github.com/JavaScript-Garden */
|
||||
|
||||
/*<!--breakpoint-->*/
|
||||
.breakpoints {width: .8em;}
|
||||
.breakpoint { color: #822; }
|
||||
|
||||
/*<!--match-->*/
|
||||
span.CodeMirror-matchhighlight { background: #494949 }
|
||||
.CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67; !important }
|
||||
|
||||
/*<!--activeline-->*/
|
||||
.activeline {background: #253540 !important;}
|
||||
|
||||
.cm-s-midnight.CodeMirror {
|
||||
background: #0F192A;
|
||||
color: #D1EDFF;
|
||||
}
|
||||
|
||||
.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
|
||||
|
||||
.cm-s-midnight div.CodeMirror-selected {background: #314D67 !important;}
|
||||
.cm-s-midnight .CodeMirror-gutters {background: #0F192A; border-right: 1px solid;}
|
||||
.cm-s-midnight .CodeMirror-linenumber {color: #D0D0D0;}
|
||||
.cm-s-midnight .CodeMirror-cursor {
|
||||
border-left: 1px solid #F8F8F0 !important;
|
||||
}
|
||||
|
||||
.cm-s-midnight span.cm-comment {color: #428BDD;}
|
||||
.cm-s-midnight span.cm-atom {color: #AE81FF;}
|
||||
.cm-s-midnight span.cm-number {color: #D1EDFF;}
|
||||
|
||||
.cm-s-midnight span.cm-property, .cm-s-tropicaleve span.cm-attribute {color: #A6E22E;}
|
||||
.cm-s-midnight span.cm-keyword {color: #E83737;}
|
||||
.cm-s-midnight span.cm-string {color: #1DC116;}
|
||||
|
||||
.cm-s-midnight span.cm-variable {color: #FFAA3E;}
|
||||
.cm-s-midnight span.cm-variable-2 {color: #FFAA3E;}
|
||||
.cm-s-midnight span.cm-def {color: #4DD;}
|
||||
.cm-s-midnight span.cm-error {background: #F92672; color: #F8F8F0;}
|
||||
.cm-s-midnight span.cm-bracket {color: #D1EDFF;}
|
||||
.cm-s-midnight span.cm-tag {color: #008;}
|
||||
.cm-s-midnight span.cm-link {color: #AE81FF;}
|
||||
|
||||
.cm-s-midnight .CodeMirror-matchingbracket {
|
||||
text-decoration: underline;
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
.typ { color: #FFAA3E; }
|
||||
.atn { color: #606; }
|
||||
.atv { color: #080; }
|
||||
.dec { color: #606; }
|
||||
28
lib/ckeditor4/plugins/codemirror/theme/monokai.css
vendored
Executable file
28
lib/ckeditor4/plugins/codemirror/theme/monokai.css
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
/* Based on Sublime Text's Monokai theme */
|
||||
|
||||
.cm-s-monokai.CodeMirror {background: #272822; color: #f8f8f2;}
|
||||
.cm-s-monokai div.CodeMirror-selected {background: #49483E !important;}
|
||||
.cm-s-monokai .CodeMirror-gutters {background: #272822; border-right: 0px;}
|
||||
.cm-s-monokai .CodeMirror-linenumber {color: #d0d0d0;}
|
||||
.cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;}
|
||||
|
||||
.cm-s-monokai span.cm-comment {color: #75715e;}
|
||||
.cm-s-monokai span.cm-atom {color: #ae81ff;}
|
||||
.cm-s-monokai span.cm-number {color: #ae81ff;}
|
||||
|
||||
.cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;}
|
||||
.cm-s-monokai span.cm-keyword {color: #f92672;}
|
||||
.cm-s-monokai span.cm-string {color: #e6db74;}
|
||||
|
||||
.cm-s-monokai span.cm-variable {color: #a6e22e;}
|
||||
.cm-s-monokai span.cm-variable-2 {color: #9effff;}
|
||||
.cm-s-monokai span.cm-def {color: #fd971f;}
|
||||
.cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;}
|
||||
.cm-s-monokai span.cm-bracket {color: #f8f8f2;}
|
||||
.cm-s-monokai span.cm-tag {color: #f92672;}
|
||||
.cm-s-monokai span.cm-link {color: #ae81ff;}
|
||||
|
||||
.cm-s-monokai .CodeMirror-matchingbracket {
|
||||
text-decoration: underline;
|
||||
color: white !important;
|
||||
}
|
||||
9
lib/ckeditor4/plugins/codemirror/theme/neat.css
vendored
Executable file
9
lib/ckeditor4/plugins/codemirror/theme/neat.css
vendored
Executable file
@@ -0,0 +1,9 @@
|
||||
.cm-s-neat span.cm-comment { color: #a86; }
|
||||
.cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; }
|
||||
.cm-s-neat span.cm-string { color: #a22; }
|
||||
.cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; }
|
||||
.cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; }
|
||||
.cm-s-neat span.cm-variable { color: black; }
|
||||
.cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
|
||||
.cm-s-neat span.cm-meta {color: #555;}
|
||||
.cm-s-neat span.cm-link { color: #3a3; }
|
||||
21
lib/ckeditor4/plugins/codemirror/theme/night.css
vendored
Executable file
21
lib/ckeditor4/plugins/codemirror/theme/night.css
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
/* Loosely based on the Midnight Textmate theme */
|
||||
|
||||
.cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; }
|
||||
.cm-s-night div.CodeMirror-selected { background: #447 !important; }
|
||||
.cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
|
||||
.cm-s-night .CodeMirror-linenumber { color: #f8f8f8; }
|
||||
.cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; }
|
||||
|
||||
.cm-s-night span.cm-comment { color: #6900a1; }
|
||||
.cm-s-night span.cm-atom { color: #845dc4; }
|
||||
.cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }
|
||||
.cm-s-night span.cm-keyword { color: #599eff; }
|
||||
.cm-s-night span.cm-string { color: #37f14a; }
|
||||
.cm-s-night span.cm-meta { color: #7678e2; }
|
||||
.cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }
|
||||
.cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; }
|
||||
.cm-s-night span.cm-error { color: #9d1e15; }
|
||||
.cm-s-night span.cm-bracket { color: #8da6ce; }
|
||||
.cm-s-night span.cm-comment { color: #6900a1; }
|
||||
.cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
|
||||
.cm-s-night span.cm-link { color: #845dc4; }
|
||||
21
lib/ckeditor4/plugins/codemirror/theme/rubyblue.css
vendored
Executable file
21
lib/ckeditor4/plugins/codemirror/theme/rubyblue.css
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
.cm-s-rubyblue { font-family: Trebuchet, Verdana, sans-serif; } /* - customized editor font - */
|
||||
|
||||
.cm-s-rubyblue.CodeMirror { background: #112435; color: white; }
|
||||
.cm-s-rubyblue div.CodeMirror-selected { background: #38566F !important; }
|
||||
.cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; }
|
||||
.cm-s-rubyblue .CodeMirror-linenumber { color: white; }
|
||||
.cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; }
|
||||
|
||||
.cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; }
|
||||
.cm-s-rubyblue span.cm-atom { color: #F4C20B; }
|
||||
.cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }
|
||||
.cm-s-rubyblue span.cm-keyword { color: #F0F; }
|
||||
.cm-s-rubyblue span.cm-string { color: #F08047; }
|
||||
.cm-s-rubyblue span.cm-meta { color: #F0F; }
|
||||
.cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }
|
||||
.cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; }
|
||||
.cm-s-rubyblue span.cm-error { color: #AF2018; }
|
||||
.cm-s-rubyblue span.cm-bracket { color: #F0F; }
|
||||
.cm-s-rubyblue span.cm-link { color: #F4C20B; }
|
||||
.cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }
|
||||
.cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }
|
||||
207
lib/ckeditor4/plugins/codemirror/theme/solarized.css
vendored
Executable file
207
lib/ckeditor4/plugins/codemirror/theme/solarized.css
vendored
Executable file
File diff suppressed because one or more lines are too long
25
lib/ckeditor4/plugins/codemirror/theme/twilight.css
vendored
Executable file
25
lib/ckeditor4/plugins/codemirror/theme/twilight.css
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
.cm-s-twilight.CodeMirror { background: #141414; color: #f7f7f7; } /**/
|
||||
.cm-s-twilight .CodeMirror-selected { background: #323232 !important; } /**/
|
||||
|
||||
.cm-s-twilight .CodeMirror-gutters { background: #222; border-right: 1px solid #aaa; }
|
||||
.cm-s-twilight .CodeMirror-linenumber { color: #aaa; }
|
||||
.cm-s-twilight .CodeMirror-cursor { border-left: 1px solid white !important; }
|
||||
|
||||
.cm-s-twilight .cm-keyword { color: #f9ee98; } /**/
|
||||
.cm-s-twilight .cm-atom { color: #FC0; }
|
||||
.cm-s-twilight .cm-number { color: #ca7841; } /**/
|
||||
.cm-s-twilight .cm-def { color: #8DA6CE; }
|
||||
.cm-s-twilight span.cm-variable-2, .cm-s-twilight span.cm-tag { color: #607392; } /**/
|
||||
.cm-s-twilight span.cm-variable-3, .cm-s-twilight span.cm-def { color: #607392; } /**/
|
||||
.cm-s-twilight .cm-operator { color: #cda869; } /**/
|
||||
.cm-s-twilight .cm-comment { color:#777; font-style:italic; font-weight:normal; } /**/
|
||||
.cm-s-twilight .cm-string { color:#8f9d6a; font-style:italic; } /**/
|
||||
.cm-s-twilight .cm-string-2 { color:#bd6b18 } /*?*/
|
||||
.cm-s-twilight .cm-meta { background-color:#141414; color:#f7f7f7; } /*?*/
|
||||
.cm-s-twilight .cm-error { border-bottom: 1px solid red; }
|
||||
.cm-s-twilight .cm-builtin { color: #cda869; } /*?*/
|
||||
.cm-s-twilight .cm-tag { color: #997643; } /**/
|
||||
.cm-s-twilight .cm-attribute { color: #d6bb6d; } /*?*/
|
||||
.cm-s-twilight .cm-header { color: #FF6400; }
|
||||
.cm-s-twilight .cm-hr { color: #AEAEAE; }
|
||||
.cm-s-twilight .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } /**/
|
||||
27
lib/ckeditor4/plugins/codemirror/theme/vibrant-ink.css
vendored
Executable file
27
lib/ckeditor4/plugins/codemirror/theme/vibrant-ink.css
vendored
Executable file
@@ -0,0 +1,27 @@
|
||||
/* Taken from the popular Visual Studio Vibrant Ink Schema */
|
||||
|
||||
.cm-s-vibrant-ink.CodeMirror { background: black; color: white; }
|
||||
.cm-s-vibrant-ink .CodeMirror-selected { background: #35493c !important; }
|
||||
|
||||
.cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
|
||||
.cm-s-vibrant-ink .CodeMirror-linenumber { color: #d0d0d0; }
|
||||
.cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white !important; }
|
||||
|
||||
.cm-s-vibrant-ink .cm-keyword { color: #CC7832; }
|
||||
.cm-s-vibrant-ink .cm-atom { color: #FC0; }
|
||||
.cm-s-vibrant-ink .cm-number { color: #FFEE98; }
|
||||
.cm-s-vibrant-ink .cm-def { color: #8DA6CE; }
|
||||
.cm-s-vibrant-ink span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #FFC66D }
|
||||
.cm-s-vibrant-ink span.cm-variable-3, .cm-s-cobalt span.cm-def { color: #FFC66D }
|
||||
.cm-s-vibrant-ink .cm-operator { color: #888; }
|
||||
.cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; }
|
||||
.cm-s-vibrant-ink .cm-string { color: #A5C25C }
|
||||
.cm-s-vibrant-ink .cm-string-2 { color: red }
|
||||
.cm-s-vibrant-ink .cm-meta { color: #D8FA3C; }
|
||||
.cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; }
|
||||
.cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; }
|
||||
.cm-s-vibrant-ink .cm-tag { color: #8DA6CE; }
|
||||
.cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; }
|
||||
.cm-s-vibrant-ink .cm-header { color: #FF6400; }
|
||||
.cm-s-vibrant-ink .cm-hr { color: #AEAEAE; }
|
||||
.cm-s-vibrant-ink .cm-link { color: blue; }
|
||||
46
lib/ckeditor4/plugins/codemirror/theme/xq-dark.css
vendored
Executable file
46
lib/ckeditor4/plugins/codemirror/theme/xq-dark.css
vendored
Executable file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
Copyright (C) 2011 by MarkLogic Corporation
|
||||
Author: Mike Brevoort <mike@brevoort.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
.cm-s-xq-dark.CodeMirror { background: #0a001f; color: #f8f8f8; }
|
||||
.cm-s-xq-dark span.CodeMirror-selected { background: #a8f !important; }
|
||||
.cm-s-xq-dark .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
|
||||
.cm-s-xq-dark .CodeMirror-linenumber { color: #f8f8f8; }
|
||||
.cm-s-xq-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
|
||||
|
||||
.cm-s-xq-dark span.cm-keyword {color: #FFBD40;}
|
||||
.cm-s-xq-dark span.cm-atom {color: #6C8CD5;}
|
||||
.cm-s-xq-dark span.cm-number {color: #164;}
|
||||
.cm-s-xq-dark span.cm-def {color: #FFF; text-decoration:underline;}
|
||||
.cm-s-xq-dark span.cm-variable {color: #FFF;}
|
||||
.cm-s-xq-dark span.cm-variable-2 {color: #EEE;}
|
||||
.cm-s-xq-dark span.cm-variable-3 {color: #DDD;}
|
||||
.cm-s-xq-dark span.cm-property {}
|
||||
.cm-s-xq-dark span.cm-operator {}
|
||||
.cm-s-xq-dark span.cm-comment {color: gray;}
|
||||
.cm-s-xq-dark span.cm-string {color: #9FEE00;}
|
||||
.cm-s-xq-dark span.cm-meta {color: yellow;}
|
||||
.cm-s-xq-dark span.cm-error {color: #f00;}
|
||||
.cm-s-xq-dark span.cm-qualifier {color: #FFF700;}
|
||||
.cm-s-xq-dark span.cm-builtin {color: #30a;}
|
||||
.cm-s-xq-dark span.cm-bracket {color: #cc7;}
|
||||
.cm-s-xq-dark span.cm-tag {color: #FFBD40;}
|
||||
.cm-s-xq-dark span.cm-attribute {color: #FFF700;}
|
||||
43
lib/ckeditor4/plugins/codemirror/theme/xq-light.css
vendored
Executable file
43
lib/ckeditor4/plugins/codemirror/theme/xq-light.css
vendored
Executable file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
Copyright (C) 2011 by MarkLogic Corporation
|
||||
Author: Mike Brevoort <mike@brevoort.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
.cm-s-xq-light span.cm-keyword {line-height: 1em; font-weight: bold; color: #5A5CAD; }
|
||||
.cm-s-xq-light span.cm-atom {color: #6C8CD5;}
|
||||
.cm-s-xq-light span.cm-number {color: #164;}
|
||||
.cm-s-xq-light span.cm-def {text-decoration:underline;}
|
||||
.cm-s-xq-light span.cm-variable {color: black; }
|
||||
.cm-s-xq-light span.cm-variable-2 {color:black;}
|
||||
.cm-s-xq-light span.cm-variable-3 {color: black; }
|
||||
.cm-s-xq-light span.cm-property {}
|
||||
.cm-s-xq-light span.cm-operator {}
|
||||
.cm-s-xq-light span.cm-comment {color: #0080FF; font-style: italic;}
|
||||
.cm-s-xq-light span.cm-string {color: red;}
|
||||
.cm-s-xq-light span.cm-meta {color: yellow;}
|
||||
.cm-s-xq-light span.cm-error {color: #f00;}
|
||||
.cm-s-xq-light span.cm-qualifier {color: grey}
|
||||
.cm-s-xq-light span.cm-builtin {color: #7EA656;}
|
||||
.cm-s-xq-light span.cm-bracket {color: #cc7;}
|
||||
.cm-s-xq-light span.cm-tag {color: #3F7F7F;}
|
||||
.cm-s-xq-light span.cm-attribute {color: #7F007F;}
|
||||
|
||||
.cm-s-xq-light .CodeMirror-activeline-background {background: #e8f2ff !important;}
|
||||
.cm-s-xq-light .CodeMirror-matchingbracket {border:1px solid grey;color:black !important;background:yellow;}
|
||||
Reference in New Issue
Block a user