SunQuest
 
           Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old October 4th, 2002, 05:44 AM
tnbd tnbd is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 1 tnbd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy WYSIWYG - Paste from Word (problem)

Hi

Please bear with me, as I am somewhat of a newbie when it comes to xml etc...

Anyway...I've been trying out the WYSIWYG editor that Mithcell Harper wrote an excellent guide for.

Everything is working just fine except for one thing.
When Pasting a formated text from WORD 2000, I get a XML error.

This only occurs when I paste formated text from word.

Anyone know what can be done to help it?

Attaching the xml-error in a picture
Attached Images
File Type: jpg xml-error.jpg (19.9 KB, 345 views)

Reply With Quote
  #2  
Old October 15th, 2002, 01:23 PM
tomh tomh is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 1 tomh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy

I am having that same problem, when the output is in the inline frame, I get the XML error, when it is simply posted to the site though, it can be read.
I have solved this problem only by going into the document with NotePad and removing all offending XML...
Does anyone else have any ideas as to how to fix this problem? My only guess is to create a parser that will remove xml-like statements when I save the content to the database.

Reply With Quote
  #3  
Old October 15th, 2002, 07:30 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
XML cant handle some characters like Ý,π,È, etc....

so you will need to replace these with something else, otherwise you will get an error, we actually had this problem with our own rss feed, because of some characters in peoples name.

Reply With Quote
  #4  
Old October 18th, 2002, 08:31 AM
dgibson dgibson is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Urbana, MD, USA
Posts: 66 dgibson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Yes, you probably want a parser anyway, because when you paste from word, you get all sorts of god-awful stuff in the code! I've done something like this in primitive form, removing all inline styles and xml tags that word adds and some documents are reduced by 70% in size.

Reply With Quote
  #5  
Old February 19th, 2003, 02:06 AM
arrowhead arrowhead is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Kuala Lumpur
Posts: 13 arrowhead User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i've noticed a couple of offending errors when pasting documents from ms-word into the wysiwyg editor.

firstly, you might notice that a dash (-) in MS-Word, sometimes it gets "processed" and becomes slightly elongated than usual.

secondly, is the single quote (').

seems like the ie wysiwyg component recognizes the 2 symbols from ms-word differently, and results in an error everytime i cut and paste a chunk of text from ms-word that contains either the dash or the single quote.


does anyone have a solution to this?

thanks.

Reply With Quote
  #6  
Old March 10th, 2003, 11:06 PM
arrowhead arrowhead is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Kuala Lumpur
Posts: 13 arrowhead User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
okay i got the answer to my previous posting.

found that the errors were caused by the enctype="multipart/form-data" inside the <form> tag. i didn't even know why i had placed it there in the first place!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > WYSIWYG - Paste from Word (problem)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway