Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new vendors directory containing unedited libraries of kcfinder…
… and ckeditor.
- Loading branch information
Showing
1,301 changed files
with
153,373 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
CKEDITOR.editorConfig = function( config ) | ||
{ | ||
|
||
config.filebrowserBrowseUrl = CKEDITOR.basePath+'../kcfinder/browse.php?type=files'; | ||
config.filebrowserImageBrowseUrl = CKEDITOR.basePath+'../kcfinder/browse.php?type=images'; | ||
config.filebrowserFlashBrowseUrl = CKEDITOR.basePath+'../kcfinder/browse.php?type=flash'; | ||
|
||
config.filebrowserUploadUrl = CKEDITOR.basePath+'../kcfinder/upload.php?type=files'; | ||
config.filebrowserImageUploadUrl = CKEDITOR.basePath+'../kcfinder/upload.php?type=images'; | ||
config.filebrowserFlashUploadUrl = CKEDITOR.basePath+'../kcfinder/upload.php?type=flash'; | ||
|
||
config.skin = 'office2003'; | ||
config.toolbarCanCollapse = false; | ||
config.resize_enabled = false; | ||
config.autoParagraph = false; | ||
|
||
if($('html').attr('dir') == 'rtl') { | ||
config.contentsLangDirection = 'rtl'; | ||
} | ||
|
||
config.toolbar_popup = | ||
[ | ||
['Save','Createlimereplacementfields'], | ||
['Cut','Copy','Paste','PasteText','PasteFromWord'], | ||
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat','Source'], | ||
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'], | ||
'/', | ||
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], | ||
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'], | ||
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], | ||
['BidiLtr', 'BidiRtl'], | ||
['Link','Unlink','Anchor','Iframe'], | ||
'/', | ||
['Styles','Format','Font','FontSize'], | ||
['TextColor','BGColor'], | ||
[ 'ShowBlocks','Templates'] | ||
]; | ||
|
||
config.toolbar_inline = | ||
[ | ||
['Maximize','Createlimereplacementfields'], | ||
['Cut','Copy','Paste','PasteText','PasteFromWord'], | ||
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat','Source'], | ||
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'], | ||
'/', | ||
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], | ||
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'], | ||
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], | ||
['BidiLtr', 'BidiRtl'], | ||
['Link','Unlink','Anchor','Iframe'], | ||
'/', | ||
['Styles','Format','Font','FontSize'], | ||
['TextColor','BGColor'], | ||
[ 'ShowBlocks','Templates'], | ||
]; | ||
|
||
|
||
|
||
|
||
config.toolbar_inline2 = | ||
[ | ||
['Maximize','Createlimereplacementfields'], | ||
['Bold','Italic','Underline'], | ||
['NumberedList','BulletedList','-','Outdent','Indent'], | ||
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], | ||
['Link','Unlink','Image'], | ||
['Source'] | ||
]; | ||
|
||
|
||
config.extraPlugins = "ajax,limereplacementfields"; | ||
|
||
|
||
|
||
}; | ||
|
||
(function () { | ||
CKEDITOR.plugins.addExternal('limereplacementfields', CKEDITOR.basePath + '../../scripts/admin/limereplacementfields/', 'plugin.js'); | ||
})(); |
73 changes: 73 additions & 0 deletions
73
scripts/admin/limereplacementfields/dialogs/limereplacementfields.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* | ||
* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.html or http://ckeditor.com/license | ||
*/ | ||
|
||
(function() | ||
{ | ||
function limereplacementfieldsDialog( editor, isEdit ) | ||
{ | ||
var lang = editor.lang.limereplacementfields, | ||
generalLabel = editor.lang.common.generalTab; | ||
return { | ||
title : lang.title, | ||
minWidth : 300, | ||
minHeight : 80, | ||
contents : | ||
[ | ||
{ | ||
id : 'info', | ||
label : generalLabel, | ||
title : generalLabel, | ||
elements : | ||
[ | ||
{ | ||
id : 'text', | ||
type : 'html', | ||
label : lang.title, | ||
html : CKEDITOR.ajax.load(editor.config.LimeReplacementFieldsPath + '/fieldtype/' + | ||
editor.config.LimeReplacementFieldsType + '/action/' + | ||
editor.config.LimeReplacementFieldsAction + '/surveyid/' + | ||
editor.config.LimeReplacementFieldsSID + '/gid/' + | ||
editor.config.LimeReplacementFieldsGID + '/qid/' + | ||
editor.config.LimeReplacementFieldsQID | ||
), | ||
setup : function( element ) | ||
{ | ||
if ( isEdit ) | ||
$('#cquestions').val( element.getText().slice( 1, -1 ) ); | ||
}, | ||
commit : function( element ) | ||
{ | ||
var text = '{' + $('#cquestions').val() + '}'; | ||
// The limereplacementfields must be recreated. | ||
CKEDITOR.plugins.limereplacementfields.createlimereplacementfields( editor, element, text ); | ||
} | ||
} | ||
] | ||
} | ||
], | ||
onShow : function() | ||
{ | ||
if ( isEdit ) | ||
this._element = CKEDITOR.plugins.limereplacementfields.getSelectedPlaceHoder( editor ); | ||
|
||
this.setupContent( this._element ); | ||
}, | ||
onOk : function() | ||
{ | ||
this.commitContent( this._element ); | ||
delete this._element; | ||
} | ||
}; | ||
} | ||
|
||
CKEDITOR.dialog.add( 'createlimereplacementfields', function( editor ) | ||
{ | ||
return limereplacementfieldsDialog( editor ); | ||
}); | ||
CKEDITOR.dialog.add( 'editlimereplacementfields', function( editor ) | ||
{ | ||
return limereplacementfieldsDialog( editor, 1 ); | ||
}); | ||
} )(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net | ||
* Copyright (C) 2003-2007 Frederico Caldeira Knabben | ||
* | ||
* == BEGIN LICENSE == | ||
* | ||
* Licensed under the terms of any of the following licenses at your | ||
* choice: | ||
* | ||
* - GNU General Public License Version 2 or later (the "GPL") | ||
* http://www.gnu.org/licenses/gpl.html | ||
* | ||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") | ||
* http://www.gnu.org/licenses/lgpl.html | ||
* | ||
* - Mozilla Public License Version 1.1 or later (the "MPL") | ||
* http://www.mozilla.org/MPL/MPL-1.1.html | ||
* | ||
* == END LICENSE == | ||
* | ||
* Placholder English language file. | ||
*/ | ||
|
||
CKEDITOR.plugins.setLang('limereplacementfields','de', { | ||
limereplacementfields: { title:'LimeSurvey Ersetzungsfeldeigenschaften', | ||
button:'Einfügen/Bearbeiten eines LimeSurvey Ersetzungsfelds' | ||
} | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net | ||
* Copyright (C) 2003-2007 Frederico Caldeira Knabben | ||
* | ||
* == BEGIN LICENSE == | ||
* | ||
* Licensed under the terms of any of the following licenses at your | ||
* choice: | ||
* | ||
* - GNU General Public License Version 2 or later (the "GPL") | ||
* http://www.gnu.org/licenses/gpl.html | ||
* | ||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") | ||
* http://www.gnu.org/licenses/lgpl.html | ||
* | ||
* - Mozilla Public License Version 1.1 or later (the "MPL") | ||
* http://www.mozilla.org/MPL/MPL-1.1.html | ||
* | ||
* == END LICENSE == | ||
* | ||
* Placeholder English language file. | ||
*/ | ||
|
||
CKEDITOR.plugins.setLang('limereplacementfields','en', { | ||
limereplacementfields: { title:'LimeSurvey replacement field properties', | ||
button:'Insert/edit LimeSurvey replacement field' | ||
} | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* FCKeditor - The text editor for Internet - http://www.fckeditor.net | ||
* Copyright (C) 2003-2007 Frederico Caldeira Knabben | ||
* | ||
* == BEGIN LICENSE == | ||
* | ||
* Licensed under the terms of any of the following licenses at your | ||
* choice: | ||
* | ||
* - GNU General Public License Version 2 or later (the "GPL") | ||
* http://www.gnu.org/licenses/gpl.html | ||
* | ||
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") | ||
* http://www.gnu.org/licenses/lgpl.html | ||
* | ||
* - Mozilla Public License Version 1.1 or later (the "MPL") | ||
* http://www.mozilla.org/MPL/MPL-1.1.html | ||
* | ||
* == END LICENSE == | ||
* | ||
* Placeholder French language file. | ||
*/ | ||
CKEDITOR.plugins.setLang('limereplacementfields','fr', { | ||
limereplacementfields: { title:'Propriétés du champ de remplacement LimeSurvey', | ||
button:'Insèrer ou éditer un champ de remplacement LimeSurvey' | ||
} | ||
} | ||
); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.