|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > WYSIWYG - Paste from Word (problem) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|