Edited by Bjarne, 20 March 2007 - 08:20 PM.
Getting rid of uncompliant characters when pasting from Word
Started by Bjarne, Mar 20 2007 05:12 PM
1 reply to this topic
#1
Posted 20 March 2007 - 05:12 PM
In wich file in the TinyMCE-plugin folder can I use "str_replace ()" to replace word-spesific characters like long dash, three dots, odd quotemarks and quotemarks that look like << and >>? These characters are not compliant with either utf-8 of ISO 8869-1. My clients like to write their documents in Word, and then copy them into Etomite, and I do not think I can make them stop this ...
#2
Posted 20 March 2007 - 08:42 PM
My suggestion would be to not use TinyMCE to perform this task... I'd add a hook into manager/processors/save_content.processor.php that would do the stripping prior to saving... This script doesn't get changed all that often so making the change there should be relatively safe... Just keep a copy of the code backed up for when you perform a code base upgrade so you know what to add back in...
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users










