Results 1 to 4 of 4

Thread: Pasting From Word

  1. #1
    Join Date
    Oct 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pasting From Word

    Hello EveryBody

    I Am Pasting A String From Microsoft Word And Then Saving It To MysQl Using A WsYGIG Editor. The Problem Is That In That Some Extra Formatting Like ‐ for '-' Also Comes. And It Is Saved To DataBase Also . I Don't Want This

    Can Any Body Tell Me How To REmove This Extra Coding.......Using Javascript

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    First, I Don't Know WhY YoU aRe CaPiTaLiZiNg LiKe ThIs....


    There are some easy tricks here:

    1. Don't paste directly. Paste into a plain text editor, ie, notepad. Then paste into the form.

    2. If you have special characters that the WYSIWYG editor is overwriting, then that means it does this, unrelated to word. (Type it and the same should happen.)
    The only way to fix that would be to rewrite the parsing in the WYSIWYG editor, which is hard, and we would obviously need some actual information on what you're doing (like the code) to have any idea about that.


    Also, using those special characters are probably right because that's how it converts for displaying in html. It may be overkill, though.


    If this doesn't answer your question, you'll need to give us some specific info, like a link to your page so we can see what is happening.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Oct 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I Want That When A String Value Comes From The Editor At The Saving Time
    Before Inputing It To Database I Want First To Reencode It And Remove Word Formatting From It Like I Want To Replace That &ndash; To "-" using JAvascript

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Ah. Word saves terrible html. Don't use it. Cut, paste, and reformat. It will save time, and actually work properly.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •