Guests: 6 Members: 0 On this page: 2 Members: 1, Newest: Smuck
Link to us
e107 WYSIWYG with tinyMCE
WYSIWYG tinyMCE Configuration
Currently the default tinyMCE configuration does not allow script and lots of other html code. And there could be plenty of more buttons too. On the other hand buttons like copy, cut and paste are unnessecary, because there are shortcuts (CTRL-c,x,v) on the keyboard to these always.
To add more features with buttons and to allow the full xhtml set of codes: Download the tinyMCE editor. Find therein the plugins missing in your /e107_handlers/tiny_mce/plugins directory and upload them to your site. U also need to update the file "tiny_mce_gzip.php" (compressed package of tinyMCE). U can then change configuration in the e107_handlers/tiny_mce/wysiwyg.php file. To use the same configuration as on this site download this and remove .txt from extension to use it. You can also set certain buttons to be available only in admin mode...
If you set word wrap in e107 admin preferences to some value, often long urls will be broken with spaces!Therefore leave those spaces empty, if you use the wysiwyg editor! Else conversion errors will occur. Especially when doing an edit. And it's no different from fckeditor, which is also known to run with problems.
If u wish to use java code in e107 wysiwyg editor, the valid_elements option with the full xhtml rule set in the configuration file refered to above allow the use of the command script with which u can include a java script. Some objects only require the script command, but if more commands are required simply put the code in an external file and include it with the script command. You can as a precaution set the script command available only to admin: insert and replace $text .= (ADMIN) ? ",script[charset|defer|language|src|type]," : "" correctly in the wysiwyg.php file.