Skip to content

Commit

Permalink
Added new vendors directory containing unedited libraries of kcfinder…
Browse files Browse the repository at this point in the history
… and ckeditor.
  • Loading branch information
SamMousa committed Aug 6, 2012
1 parent dd1e0e3 commit 5205888
Show file tree
Hide file tree
Showing 1,301 changed files with 153,373 additions and 0 deletions.
79 changes: 79 additions & 0 deletions scripts/admin/ckeditor-config.js
@@ -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');
})();
@@ -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 );
});
} )();
29 changes: 29 additions & 0 deletions scripts/admin/limereplacementfields/lang/de.js
@@ -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'
}
}
);
29 changes: 29 additions & 0 deletions scripts/admin/limereplacementfields/lang/en.js
@@ -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'
}
}
);
28 changes: 28 additions & 0 deletions scripts/admin/limereplacementfields/lang/fr.js
@@ -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.

0 comments on commit 5205888

Please sign in to comment.