Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev Putting in CKEditor - check out 'Edit text elements' to get a pre…
…view git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ck@10108 b72ed6b6-b9f8-46b5-92b4-906544132732
- Loading branch information
Showing
4 changed files
with
198 additions
and
132 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
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,57 @@ | ||
CKEDITOR.editorConfig = function( config ) | ||
{ | ||
// Define changes to default configuration here. For example: | ||
// config.language = 'fr'; | ||
// config.uiColor = '#AADC6E'; | ||
config.skin = 'office2003'; | ||
config.toolbarCanCollapse = false; | ||
|
||
config.toolbar_popup = | ||
[ | ||
['Maximize'], | ||
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print'], | ||
['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'], | ||
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print'], | ||
['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'] | ||
]; | ||
|
||
|
||
/* for a later time when CKEditor can change the toolbar on maximize | ||
config.toolbar_inline = | ||
[ | ||
['Maximize'], | ||
['Bold','Italic','Underline'], | ||
['NumberedList','BulletedList','-','Outdent','Indent'], | ||
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], | ||
['Link','Unlink','Image'], | ||
['Source'] | ||
];*/ | ||
}; |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
// $Id: labels.js 8649 2010-04-28 21:38:53Z c_schmitz $ | ||
|
||
$(document).ready(function(){ | ||
$('textarea.fulledit').ckeditor(); | ||
|
||
$('textarea.fulledit').ckeditor(function() { /* callback code */ }, { toolbar : sHTMLEditorMode, | ||
customConfig : 'limesurvey-config.js' }); | ||
}); |
Oops, something went wrong.