Etomite Community Forums: Getting rid of uncompliant characters when pasting from Word - Etomite Community Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Getting rid of uncompliant characters when pasting from Word

#1 User is offline   Bjarne 

  • Etomite Forum Fan
  • Pip
  • Group: Member
  • Posts: 94
  • Joined: 28-December 04

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 ...

This post has been edited by Bjarne: 20 March 2007 - 08:20 PM


#2 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,418
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

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...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users