This is a discussion on Wysiwyg Spaw Editor within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; We still haven't found a satasfactury solution to this annoying little bug, however i have got an update for people ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| We still haven't found a satasfactury solution to this annoying little bug, however i have got an update for people who are trying to get this stop gap solution to work on other pages other than on catagories.php. Go to the page you want to add the fix to and then look at the source. Do a search for: onclick="SpawPGcore.codeCleanupClick The is the onlick event of the clean up html button. Grab the whole of the on click event: SpawPGcore.codeCleanupClick(content_obj.getTargetE ditor(),content_obj.getToolbarItem('content_tools_ 0'), this); and use this in the onload event. Don't forget to wrap it in a PHP if statement so that the code only fires when you are trying to edit or create a new product/category/newsletter or oyu will start to see javascript errors. Another point to make is that i have found that sometimes i have needed to get the javascript to fire twice, as if you had clicked the button twice. Just add the code into the onload event twice. Hope that helps some more people. Regards More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wysiwyg Spaw Editor | michael_s | New osCommerce Contributions | 1 | 01-24-2008 10:39 PM |
| Wysiwyg Spaw Editor | michael_s | New osCommerce Contributions | 0 | 11-12-2007 08:21 AM |
| Wysiwyg Spaw Editor | michael_s | New osCommerce Contributions | 0 | 11-12-2007 02:10 AM |
| Wysiwyg Spaw Editor | michael_s | New osCommerce Contributions | 0 | 11-09-2007 08:54 AM |
| Wysiwyg Spaw Editor | michael_s | New osCommerce Contributions | 0 | 04-29-2007 01:32 PM |