
Newbie

Posts: 5
Joined: 10/10/2007
|
Hello everybody.
Trying to use the latest version of tinyMCE, i found this on moxiecode discussion board: (http://tinymce.mo...hp?id=8722)
Note: I am using the latest php-fusion (version 6.01.13)
procedure:
1. Download the latest version (currently version 2.1.3) of tinyMCE (http://prdownload...p?download)
2. Rename /includes/jscripts/tiny_mce/ folder into /includes/jscripts/tiny_mce_bkp/ (just in case ... )
3. Extract content of tinymce_2_1_3.zip (latest version of tinyMCE You just downloaded) into /includes/jscripts/tiny_mce_2_1_3/ folder
4. Copy tiny_mce folder from /includes/jscripts/tiny_mce_2_1_3/ folder to /includes/jscripts/
5. You have now a brand new /includes/jscripts/tiny_mce/ folder containing the lataest version of tinyMCE.
6. Make a backup of /administration/subheader.php file (e.g. copy it to subheader.bkp)
7. Edit /administration/subheader.php
8. Find :
[php] tinyMCE.init({
mode:'textareas',
theme:'advanced',
width:'100%',
height:'250',
language:'".$locale['tinymce']."',
entities:'60,lt,62,gt',
document_base_url:'".$settings['siteurl']."',
relative_urls:'false',
convert_newlines_to_brs:'true',
force_br_newlines:'true',
force_p_newlines:'false',
plugins:'table,advhr,advimage,advlink,insertdatetime,searchreplace,contextmenu,ibrowser',
theme_advanced_buttons1_add:'fontsizeselect',
theme_advanced_buttons2_add:'separator,insertdate,inserttime,separator,forecolor,backcolor',
theme_advanced_buttons3_add_before:'ibrowser,tablecontrols,separator',
theme_advanced_buttons3_add:'advhr',
theme_advanced_toolbar_location:'bottom',
theme_advanced_toolbar_align:'center',
theme_advanced_path_location:'none',
theme_advanced_toolbar_location:'top',
content_css:'".THEME."styles.css',
external_image_list_url:'".IMAGES."imagelist.js',
plugin_insertdate_dateFormat:'%d-%m-%Y',
plugin_insertdate_timeFormat:'%H:%M:%S',
invalid_elements:'script,object,applet,iframe',
extended_valid_elements:'a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]'
});[/php]
9. Replace it by:
[php]tinyMCE.init({
mode:'textareas',
theme:'advanced',
width:'100%',
height:'250',
language:'".$locale['tinymce']."',
entities:'60,lt,62,gt',
document_base_url:'".$settings['siteurl']."',
relative_urls:'false',
convert_newlines_to_brs:'true',
force_br_newlines:'true',
force_p_newlines:'false',
plugins : 'style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,flash,searchreplace,print,contextmenu,paste,directionality,noneditable',
theme_advanced_buttons1_add_before : 'newdocument,separator,cut,copy,paste,pastetext,pasteword,separator,search,replace,separato',
theme_advanced_buttons1 : 'outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help,code',
theme_advanced_buttons1_add : 'separator,sub,sup',
theme_advanced_buttons2_add_before: '',
theme_advanced_buttons2 : 'styleselect,formatselect,fontselect,fontsizeselect',
theme_advanced_buttons2_add : '',
theme_advanced_buttons3_add_before : '',
theme_advanced_buttons3 : 'bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,tablecontrols',
theme_advanced_buttons3_add : '',
theme_advanced_buttons4 : 'insertdate,inserttime,preview,insertlayer,moveforward,movebackward,absolute,|,styleprops,emotions,iespell,flash,advhr,separator,print,separator,ltr,rtl,separator,hr,removeformat,visualaid,separator,forecolor,backcolor,separator,charmap',
theme_advanced_toolbar_location:'bottom',
theme_advanced_toolbar_align:'center',
theme_advanced_path_location:'none',
theme_advanced_toolbar_location:'top',
content_css:'".THEME."styles.css',
external_image_list_url:'".IMAGES."imagelist.js',
plugin_insertdate_dateFormat:'%d-%m-%Y',
plugin_insertdate_timeFormat:'%H:%M:%S',
invalid_elements:'script,object,applet,iframe',
extended_valid_elements:'a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]'
});[/php]
10. Save Your file and exit.
11. Download Tiny MCE Compressor PHP from the same site (http://prdownload...p?download)
12. Extract the 2 files from this archive (tiny_mce_gzip.js and tiny_mce_gzip.php) to Your /includes/jscripts/tiny_mce/ folder.
... You are now able to use the full featured version of tinyMCE with all plugins.
I hope it will help to make Your site more attractive.
Regards,
Captain.
Edited by captain on 21-01-2008 22:53
It is not because things are difficult that we do not dare, it is because we do not dare that things are difficult. (Seneca)
|