Re: TinyMCE... anyone?
Hi everyone, with latest version of WPClassipress is possible. The previous one had one more
js library that didn't work correctly with Tiny MCE.
Do this:
1) go to
http://tinymce.moxiecode.com/download.php and download both Main Package and Compressor PHP
2) unpack and upload everything on your server in a public folder, for example inside a folder called: jscripts
3) edit
post-form.php and add the following code after the first <script></script> argument the following (around line 4.
Note: change www.yourdomain.com into your real domain name
Code:
<script type="text/javascript" src="http://www.yourdomain.com/jscripts/tiny_mce/tiny_mce_gzip.js"></script>
<script type="text/javascript">
// This is where the compressor will load all components, include all components used on the page here
tinyMCE_GZ.init({
plugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras',
themes : 'advanced',
languages : 'en',
disk_cache : true,
debug : false
});
</script>
<script type="text/javascript">
// Normal initialization of TinyMCE
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
plugins : "style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
// Theme options
theme : "simple"
});
</script>
4) save and upload your file (please make a copy of your old file before doing this)
5) that's it!
The first line will load your
JS library in compressor format, very fast!
You can change some options editign these lines:
themes : 'advanced',
languages : 'en',
disk_cache : true,
debug : false
But what I really wanted was this: theme : "simple"
This option tells Tiny MCE to show just the very basic elementary tools: Bold, Italic, Underline e few others.
Don't forget to enable HTML on WPC theme options!
Hope you love this
Cheers!
Valerio