![]() ![]() |
Sep 21 2012, 08:05 AM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 25 Joined: 21-September 12 Member No.: 80,230 |
Hello,
which file include the ckeditor i want change editor`s toolbar CODE //<![CDATA[ (function() { var settings = { customConfig: '', entities: false, entities_latin: false, entities_greek: false, toolbar: [ ['Source','Scayt','-','Copy','Paste','PasteText','PasteFromWord','Cut'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'], ['Link','Unlink','Anchor'], '/', ['Format','FontSize','TextColor','BGColor'], ['Bold','Italic','Strike'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], ['Maximize','About'] ], filebrowserBrowseUrl: '?&mod=images&action=quick&wysiwyg=cke', filebrowserImageBrowseUrl: '?&mod=images&action=quick&wysiwyg=cke', smiley_path: 'http://cantinemobile.ch/cutenews/data/emoticons/', smiley_images: ['smile.gif', 'wink.gif', 'wassat.gif', 'tongue.gif', 'laughing.gif', 'sad.gif', 'angry.gif', 'crying.gif', ], smiley_descriptions: ['smile', 'wink', 'wassat', 'tongue', 'laughing', 'sad', 'angry', 'crying', ] }; CKEDITOR.replace ('short_story', settings); CKEDITOR.replace ('full_story', settings); })(); //]]> John CuteNews ut-f8 9.1 This post has been edited by Perry: Sep 22 2012, 10:31 AM |
|
|
|
Sep 22 2012, 01:05 PM
Post
#2
|
|
|
Newbie ![]() Group: Members Posts: 25 Joined: 21-September 12 Member No.: 80,230 |
I have tried the following(....cutenews/rte/ckeditor/config.js):
CODE CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: config.language = 'de'; config.uiColor = '#AADC6E'; config.toolbar= "Basic"; }; without success! Please Help! |
|
|
|
Sep 23 2012, 08:33 AM
Post
#3
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 159 Joined: 14-October 09 From: Germany Member No.: 32,006 |
The file functions.inc.php controls the behavior in UTF-8 CuteNews 9.1, line 1082 I think:
CODE if($wysiwyg == 'cke' && $admincp){ if($insert_location == 'short_story'){ return NULL; } $output = "<script type=\"text/javascript\"> //<![CDATA[ (function() { var settings = { customConfig: '', entities: false, entities_latin: false, entities_greek: false, toolbar: [ ['Source','Scayt','-','Copy','Paste','PasteText','PasteFromWord','Cut'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'], ['Link','Unlink','Anchor'], '/', ['Format','FontSize','TextColor','BGColor'], ['Bold','Italic','Strike'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], ['Maximize','About'] ], filebrowserBrowseUrl: 'index.php?&mod=images&action=quick&wysiwyg=cke', filebrowserImageBrowseUrl: 'index.php?&mod=images&action=quick&wysiwyg=cke', smiley_path: '$config_http_script_dir/data/emoticons/', "; } We had to configure the ckeditors skin in the functions.inc.php to include some functions like inserting images and smileys and using the correct charset. This post has been edited by Filou83: Sep 23 2012, 08:43 AM -------------------- Regards from Germany :D
Personal website: http://mb-wallpaper.de |
|
|
|
Sep 23 2012, 07:12 PM
Post
#4
|
|
|
Newbie ![]() Group: Members Posts: 25 Joined: 21-September 12 Member No.: 80,230 |
Hello filou83,
thanks for help!! |
|
|
|
Sep 24 2012, 11:02 AM
Post
#5
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 159 Joined: 14-October 09 From: Germany Member No.: 32,006 |
You're welcome
-------------------- Regards from Germany :D
Personal website: http://mb-wallpaper.de |
|
|
|
![]() ![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 03:32 PM |