I know this is a super old post, but I hope someone is still reading it. Here's my situation:
My client creates events in her CMS. The event description field is a WYSIWYG editor (tinyMCE, not that it matters). She writes her event description in MS Word and then pastes it into the WYSIWYG editor. She won't use the paste as plain text option because she wants to maintain the formatting she worked so hard on in Word. :p We set up an .ics attachment much like the one described here. It works fine. The problem is, pasting Word into the WYSIWYG also pastes in all the Microsoft crap formatting. When the .ics is opened the formatting is displaying as text in the event summary box. We've tried regex to strip it, but it won't get it all. And even if the regex managed to get all the crap formatting, my client would be upset because ALL of the formatting would be gone. Has anyone ran into this issue before or have any ideas on how we can fix it? Thanks in advance! >We are using the following code to email to a user's shared email/calendar >system. We use the same code without the cfmailpart bits to create a >calendar of events for users. Hope this helps. > ><cfmailpart type="text/calendar; method=REQUEST; name=meeting.ics" >charset="utf-8">BEGIN:VCALENDAR >VERSION:2.0 >METHOD:REQUEST >BEGIN:VEVENT >UID:#getregid.regid#-#eventid#- >SUMMARY:#eventtitle# >LOCATION:#eventlocation# >ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION; > RSVP=FALSE:mailto:#form.rsvpemail# >ORGANIZER:mailto:[email protected] >DTSTART:#dateformat(realdate,'yyyymmdd')#T#timeformat(starts,'HHmmss')# >DTEND:#dateformat(realdate,'yyyymmdd')#T#timeformat(end,'HHmmss')# >STATUS:CONFIRMED >CLASS:PUBLIC >END:VEVENT >END:VCALENDAR ></cfmailpart> > >On Fri, Aug 8, 2008 at 10:29 AM, Pete Ruckelshaus ><[email protected]>wrote: > >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331088 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

