Paste From Word 2007


  • Trolleybus Mechanic

     Ok, I know I'm guilty of pasting from Word into an HTML textbox. I've done it on some featured articles. Heck, even here, there's that nice Paste[W] button in the forum editor.

    I just got a support email from a client. She pasted a small amount of text into a textbox that has a 4000 character limit, and the result was blank. I looked at the database, and saw 4000 characters of word junk. That seems like a lot, so I pasted 1 bolded character into an empty HTML editor, went to view source, and saw this.

    It is 17,670 characters. You can remove every single one, and still have the text work properly:

    @MS WTF said:

    <!--[if gte mso 9]><xml>
     <w:WordDocument>
      <w:View>Normal</w:View>
      <w:Zoom>0</w:Zoom>
      <w:TrackMoves/>
      <w:TrackFormatting/>
      <w:PunctuationKerning/>
      <w:ValidateAgainstSchemas/>
      <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
      <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
      <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
      <w:DoNotPromoteQF/>
      <w:LidThemeOther>EN-US</w:LidThemeOther>
      <w:LidThemeAsian>X-NONE</w:LidThemeAsian>
      <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
      <w:Compatibility>
       <w:BreakWrappedTables/>
       <w:SnapToGridInCell/>
       <w:WrapTextWithPunct/>
       <w:UseAsianBreakRules/>
       <w:DontGrowAutofit/>
       <w:SplitPgBreakAndParaMark/>
       <w:DontVertAlignCellWithSp/>
       <w:DontBreakConstrainedForcedTables/>
       <w:DontVertAlignInTxbx/>
       <w:Word11KerningPairs/>
       <w:CachedColBalance/>
      </w:Compatibility>
      <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
      <m:mathPr>
       <m:mathFont m:val="Cambria Math"/>
       <m:brkBin m:val="before"/>
       <m:brkBinSub m:val="--"/>
       <m:smallFrac m:val="off"/>
       <m:dispDef/>
       <m:lMargin m:val="0"/>
       <m:rMargin m:val="0"/>
       <m:defJc m:val="centerGroup"/>
       <m:wrapIndent m:val="1440"/>
       <m:intLim m:val="subSup"/>
       <m:naryLim m:val="undOvr"/>
      </m:mathPr></w:WordDocument>
    </xml><![endif]--><!--[if gte mso 9]><xml>
     <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
      DefSemiHidden="true" DefQFormat="false" DefPriority="99"
      LatentStyleCount="267">
      <w:LsdException Locked="false" Priority="0" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
      <w:LsdException Locked="false" Priority="9" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
      <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
      <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
      <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
      <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
      <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
      <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
      <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
      <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
      <w:LsdException Locked="false" Priority="39" Name="toc 1"/>
      <w:LsdException Locked="false" Priority="39" Name="toc 2"/>
      <w:LsdException Locked="false" Priority="39" Name="toc 3"/>
      <w:LsdException Locked="false" Priority="39" Name="toc 4"/>
      <w:LsdException Locked="false" Priority="39" Name="toc 5"/>
      <w:LsdException Locked="false" Priority="39" Name="toc 6"/>
      <w:LsdException Locked="false" Priority="39" Name="toc 7"/>
      <w:LsdException Locked="false" Priority="39" Name="toc 8"/>
      <w:LsdException Locked="false" Priority="39" Name="toc 9"/>
      <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
      <w:LsdException Locked="false" Priority="10" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="Title"/>
      <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
      <w:LsdException Locked="false" Priority="11" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
      <w:LsdException Locked="false" Priority="22" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
      <w:LsdException Locked="false" Priority="20" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
      <w:LsdException Locked="false" Priority="59" SemiHidden="false"
       UnhideWhenUsed="false" Name="Table Grid"/>
      <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
      <w:LsdException Locked="false" Priority="1" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
      <w:LsdException Locked="false" Priority="60" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Shading"/>
      <w:LsdException Locked="false" Priority="61" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light List"/>
      <w:LsdException Locked="false" Priority="62" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Grid"/>
      <w:LsdException Locked="false" Priority="63" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 1"/>
      <w:LsdException Locked="false" Priority="64" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 2"/>
      <w:LsdException Locked="false" Priority="65" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 1"/>
      <w:LsdException Locked="false" Priority="66" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 2"/>
      <w:LsdException Locked="false" Priority="67" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 1"/>
      <w:LsdException Locked="false" Priority="68" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 2"/>
      <w:LsdException Locked="false" Priority="69" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 3"/>
      <w:LsdException Locked="false" Priority="70" SemiHidden="false"
       UnhideWhenUsed="false" Name="Dark List"/>
      <w:LsdException Locked="false" Priority="71" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Shading"/>
      <w:LsdException Locked="false" Priority="72" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful List"/>
      <w:LsdException Locked="false" Priority="73" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Grid"/>
      <w:LsdException Locked="false" Priority="60" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
      <w:LsdException Locked="false" Priority="61" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light List Accent 1"/>
      <w:LsdException Locked="false" Priority="62" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
      <w:LsdException Locked="false" Priority="63" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
      <w:LsdException Locked="false" Priority="64" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
      <w:LsdException Locked="false" Priority="65" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
      <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
      <w:LsdException Locked="false" Priority="34" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
      <w:LsdException Locked="false" Priority="29" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
      <w:LsdException Locked="false" Priority="30" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
      <w:LsdException Locked="false" Priority="66" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
      <w:LsdException Locked="false" Priority="67" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
      <w:LsdException Locked="false" Priority="68" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
      <w:LsdException Locked="false" Priority="69" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
      <w:LsdException Locked="false" Priority="70" SemiHidden="false"
       UnhideWhenUsed="false" Name="Dark List Accent 1"/>
      <w:LsdException Locked="false" Priority="71" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
      <w:LsdException Locked="false" Priority="72" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
      <w:LsdException Locked="false" Priority="73" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
      <w:LsdException Locked="false" Priority="60" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
      <w:LsdException Locked="false" Priority="61" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light List Accent 2"/>
      <w:LsdException Locked="false" Priority="62" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
      <w:LsdException Locked="false" Priority="63" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
      <w:LsdException Locked="false" Priority="64" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
      <w:LsdException Locked="false" Priority="65" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
      <w:LsdException Locked="false" Priority="66" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
      <w:LsdException Locked="false" Priority="67" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
      <w:LsdException Locked="false" Priority="68" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
      <w:LsdException Locked="false" Priority="69" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
      <w:LsdException Locked="false" Priority="70" SemiHidden="false"
       UnhideWhenUsed="false" Name="Dark List Accent 2"/>
      <w:LsdException Locked="false" Priority="71" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
      <w:LsdException Locked="false" Priority="72" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
      <w:LsdException Locked="false" Priority="73" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
      <w:LsdException Locked="false" Priority="60" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
      <w:LsdException Locked="false" Priority="61" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light List Accent 3"/>
      <w:LsdException Locked="false" Priority="62" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
      <w:LsdException Locked="false" Priority="63" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
      <w:LsdException Locked="false" Priority="64" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
      <w:LsdException Locked="false" Priority="65" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
      <w:LsdException Locked="false" Priority="66" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
      <w:LsdException Locked="false" Priority="67" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
      <w:LsdException Locked="false" Priority="68" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
      <w:LsdException Locked="false" Priority="69" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
      <w:LsdException Locked="false" Priority="70" SemiHidden="false"
       UnhideWhenUsed="false" Name="Dark List Accent 3"/>
      <w:LsdException Locked="false" Priority="71" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
      <w:LsdException Locked="false" Priority="72" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
      <w:LsdException Locked="false" Priority="73" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
      <w:LsdException Locked="false" Priority="60" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
      <w:LsdException Locked="false" Priority="61" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light List Accent 4"/>
      <w:LsdException Locked="false" Priority="62" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
      <w:LsdException Locked="false" Priority="63" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
      <w:LsdException Locked="false" Priority="64" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
      <w:LsdException Locked="false" Priority="65" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
      <w:LsdException Locked="false" Priority="66" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
      <w:LsdException Locked="false" Priority="67" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
      <w:LsdException Locked="false" Priority="68" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
      <w:LsdException Locked="false" Priority="69" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
      <w:LsdException Locked="false" Priority="70" SemiHidden="false"
       UnhideWhenUsed="false" Name="Dark List Accent 4"/>
      <w:LsdException Locked="false" Priority="71" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
      <w:LsdException Locked="false" Priority="72" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
      <w:LsdException Locked="false" Priority="73" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
      <w:LsdException Locked="false" Priority="60" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
      <w:LsdException Locked="false" Priority="61" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light List Accent 5"/>
      <w:LsdException Locked="false" Priority="62" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
      <w:LsdException Locked="false" Priority="63" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
      <w:LsdException Locked="false" Priority="64" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
      <w:LsdException Locked="false" Priority="65" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
      <w:LsdException Locked="false" Priority="66" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
      <w:LsdException Locked="false" Priority="67" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
      <w:LsdException Locked="false" Priority="68" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
      <w:LsdException Locked="false" Priority="69" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
      <w:LsdException Locked="false" Priority="70" SemiHidden="false"
       UnhideWhenUsed="false" Name="Dark List Accent 5"/>
      <w:LsdException Locked="false" Priority="71" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
      <w:LsdException Locked="false" Priority="72" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
      <w:LsdException Locked="false" Priority="73" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
      <w:LsdException Locked="false" Priority="60" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
      <w:LsdException Locked="false" Priority="61" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light List Accent 6"/>
      <w:LsdException Locked="false" Priority="62" SemiHidden="false"
       UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
      <w:LsdException Locked="false" Priority="63" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
      <w:LsdException Locked="false" Priority="64" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
      <w:LsdException Locked="false" Priority="65" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
      <w:LsdException Locked="false" Priority="66" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
      <w:LsdException Locked="false" Priority="67" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
      <w:LsdException Locked="false" Priority="68" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
      <w:LsdException Locked="false" Priority="69" SemiHidden="false"
       UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
      <w:LsdException Locked="false" Priority="70" SemiHidden="false"
       UnhideWhenUsed="false" Name="Dark List Accent 6"/>
      <w:LsdException Locked="false" Priority="71" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
      <w:LsdException Locked="false" Priority="72" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
      <w:LsdException Locked="false" Priority="73" SemiHidden="false"
       UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
      <w:LsdException Locked="false" Priority="19" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
      <w:LsdException Locked="false" Priority="21" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
      <w:LsdException Locked="false" Priority="31" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
      <w:LsdException Locked="false" Priority="32" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
      <w:LsdException Locked="false" Priority="33" SemiHidden="false"
       UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
      <w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
      <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
     </w:LatentStyles>
    </xml><![endif]--><!--[if gte mso 10]>
    <style>
     /* Style Definitions */
     table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-priority:99;
        mso-style-qformat:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin-top:0in;
        mso-para-margin-right:0in;
        mso-para-margin-bottom:10.0pt;
        mso-para-margin-left:0in;
        line-height:115%;
        mso-pagination:widow-orphan;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-fareast-font-family:"Times New Roman";
        mso-fareast-theme-font:minor-fareast;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;}
    </style>
    <![endif]-->
     

     




  • LsdException
    Well, at least we know what caused this.


  • Gotta love XML



  • @Lorne Kates said:

     Ok, I know I'm guilty of pasting from Word into an HTML textbox. I've done it on some featured articles. Heck, even here, there's that nice Paste[W] button in the forum editor.

    The TinyMCE editor apparently has a config option to tidy up that mess:

    paste_auto_cleanup_on_paste

    http://wordpress.grc.nasa.gov/blog/2009/07/28/resolving-issue-with-pasting-from-word-into-tinymce-visual-editor-extra-style-information/


     


  • Discourse touched me in a no-no place

    @DaveK said:

    2009
    Hah!. No chance on here.



  • @DaveK said:

    http://wordpress.grc.nasa.gov/blog/2009/07/28/resolving-issue-with-pasting-from-word-into-tinymce-visual-editor-extra-style-information/

    Wait ...

    Resolution: By changing both instances of the value “paste_auto_cleanup_on_paste” from “false” to “true” in the following WordPress file,

    There is more than one paste_auto_cleanup_on_paste?


  • Trolleybus Mechanic

    @DaveK said:

    The TinyMCE editor apparently has a config option to tidy up that mess:
    paste_auto_cleanup_on_paste

    http://wordpress.grc.<font size="18x">nasa.gov</font>/blog/2009/07/28/resolving-issue-with-pasting-from-word-into-tinymce-visual-editor-extra-style-information/

     

    It took NASA to solve this problem? Jesus fucking christ, Microsoft!



  • Just as good. I just saved a 6 cell Excel spreadsheet (1 word per cell) as html, and it became a 400 line Javascript/CSS jungle.

     

    I guess that it's an improvement that Excel tried to pretend to use tables in 2007 (It looks like it's using embeded frames). Excel 2K used to generate tables by

    &nbsp|&nbspText&nbsp|&nbsp, etc.


  • Garbage Person

     You know, for all the headaches TinyMCE gives us, shouldn't a new version of TinyMCE just be a drop-in replacement?



  • @Weng said:

     You know, for all the headaches TinyMCE gives us, shouldn't a new version of TinyMCE just be a drop-in replacement?

     

    Hehehehe

     





  • @renewest said:

    One of my favorite sites:
     

    That "article" is from 2004. Stop wasting our time.



  • @dhromed said:

    @renewest said:

    One of my favorite sites:
     

    That "article" is from 2004. Stop wasting our time.

     

     

    Yes, it's from 2004 and people are still commenting. 


     



  • @renewest said:

     One of my favorite sites:

     http://mindfulmusings.net/weblog/2004/03/14/microsoft-word-sucks-dirty-donkey-balls/

    Wow. Just... wow.


    Btw, I just hate [pretty decent software with lots of users]!!! It sucks so bad I have no idea why they make so much money with it!!! Don't even ask me why, it'll take forever to explain every thing of fuck that it is!!! I can't believe that [decent feature of said program] doesn't offer me to [do particular task that contradicts the very idea of that feature in the first place]!! Seriously, how could they forget about something that obvious??? Are they fucking retarded?? Fuck the suckers, this sucks. Here a list what I hate most about [software]:

    • [previously mentioned decent feature]
    • [some features that programs I should have used instead have]
    • [screw it, let's just call out every totally optional feature I don't like and can't be arsed to turn off]


  • @renewest said:

    Yes, it's from 2004 and people are still commenting. 

    Here is a simple explanation to that phenomenon:

    obligatory xkcd quote (you know which one!)



  • This is why I think that it is easier to just open the docx file and parse the xml there, you get to choose what stuff to keep.

    In fact, a proper converter would probably be shorter than the posted grunk.



  • @henke37 said:

    This is why I think that it is easier to just open the docx file and parse the xml there, you get to choose what stuff to keep.

    You know, it might sound ill-informed and stupid, but WHAT ABOUT NOT PASTING FORMATTED TEXT FROM WORD DOCUMENTS AT ALL? If you're going to mess with XML anyway, you can as well just write your own HTML in the first place. Besides, I doubt that the people who usually paste from Word don't even know how to open the xml file itself, let alone are able to parse it mentally. Plus I think that most people still use .doc, because either they're having to use an older Word version, or just don't grasp what this new-fangled docx would be as they've always just used doc.



  • @lolwtf said:

    LsdException
    Well, at least we know what caused this.
    You beat me to it, I was about to say nearly the same... I hate you so.



  •  I wonder how the extension got to be something utterly generic as "doc", instead of, say "wrd".

    Successful user testing? (not likely, because extensions are hidden by default in Explorer)

    Successful monopoly position? (cue blakeyrant)

     

    Nonetheless, I like Word 2007. I do. It's never happened before, but I can honestly say that I like this version of Word. It goes the extra mile, instead of almost-but-not-quite OpenOffice Writer.



  • Word is a publishing platform, not a frakking HTML editor. Anyone who still uses Word as something to write for the net (aside from PDFs) deserves to be slapped with a trout.

    Also, whoever got all that is doing something weird/wrong with Word. I've seen it output perfectly fine HTML files without all that garbage. Good HTML? Not really. But nothing even CLOSE to that level of fuckery.



  • @renewest said:

    Yes, it's from 2004 and people are still commenting.

    That reminds me of a rather peculiar Techdirt article that I check on every so often. I think it's been mentioned on this forum before, maybe not, but it's still an active source. I'll give no further introduction to this link, just be aware of the dates on the comments: [url]http://www.techdirt.com/articles/000324/1149204_F.shtml[/url]



  • @Xyro said:

    @renewest said:
    Yes, it's from 2004 and people are still commenting.

    That reminds me of a rather peculiar Techdirt article that I check on every so often. I think it's been mentioned on this forum before, maybe not, but it's still an active source. I'll give no further introduction to this link, just be aware of the dates on the comments: http://www.techdirt.com/articles/000324/1149204_F.shtml

    Oh. My. God.

    I think the Government is keeping these people alive to harness the power of Charles Darwin spinning in his grave as a new source of renewable energy.



  • @Master Chief said:

    Charles Darwin spinning in his grave as a new source of renewable energy.
     

    You read Dresden Codak, too, yes?



  • It's Microsoft's new UTF-141360 encoding scheme.



  • @derula said:

    @henke37 said:
    This is why I think that it is easier to just open the docx file and parse the xml there, you get to choose what stuff to keep.

    You know, it might sound ill-informed and stupid, but WHAT ABOUT NOT PASTING FORMATTED TEXT FROM WORD DOCUMENTS AT ALL?

    Yeah, it's really not that hard to pick "Copy -> As Plain Text" instead of just "Copy".

    The catch, of course, is that you have to know you have to do that...



  • @dhromed said:

    @Master Chief said:

    Charles Darwin spinning in his grave as a new source of renewable energy.
     

    You read Dresden Codak, too, yes?

    Feh, I heard that joke in 1998.



  • @dhromed said:

    I wonder how the extension got to be something utterly generic as "doc", instead of, say "wrd".

    Successful user testing? (not likely, because extensions are hidden by default in Explorer)

    Successful monopoly position? (cue blakeyrant)

    What do you mean "got to be?"

    They just grabbed it. It's not like there's an application process to pick file extensions now, and there sure as shit wasn't in 1981.



  • @blakeyrat said:

    What do you mean "got to be?"

    They just grabbed it. It's not like there's an application process to pick file extensions now, and there sure as shit wasn't in 1981.

     

    There were other word processing applications around at the time, and I assume people give their file extension some thought-- you know, at least the better part of 45 seconds.

    But asspull is a perfectly reasonable cause, of course.

     

     



  • @blakeyrat said:

    Feh, I heard that joke in 1998.
     

    :'(



  • @dhromed said:

    There were other word processing applications around at the time, and I assume people give their file extension some thought-- you know, at least the better part of 45 seconds.
    Others may have tried to use .doc, but Word won because it had more users. At that point, for the avoidance of confusion, others gave up.



  • @dhromed said:

     I wonder how the extension got to be something utterly generic as "doc", instead of, say "wrd".

    Successful user testing? (not likely, because extensions are hidden by default in Explorer)

     

    Yes, because Microsoft predicted in the early 80s that they would start hiding file extensions in the mid-90s...


  • @powerlord said:

    Microsoft [...] started hiding file extensions in the mid-90s...
    Why did they ever (and do they still) think that's a good thing to do?



  • @intertravel said:

    @powerlord said:
    Microsoft [...] started hiding file extensions in the mid-90s...
    Why did they ever (and do they still) think that's a good thing to do?

    As a Linux user, I know that file extensions don't matter than much at all. Hiding them wouldn't be too big of a deal (if, say, the file format were obvious from the icon). What is really horrible though is that when file extensions are hidden, you can't even change them! That...! What were they thinking?



  • Even more disturbing than the XML-mess is the "<!--[if gte mso 9]>"-stuff. As far as I can see, the whole thing would be parsed as a series of comments in any "standard" XML parser. (That might actually be a feature?)



  • @cvi said:

    Even more disturbing than the XML-mess is the "<!--[if gte mso 9]>"-stuff. As far as I can see, the whole thing would be parsed as a series of comments in any "standard" XML parser. (That might actually be a feature?)

    Definitely feature. Microsoft uses this for things that should only be used in particular versions of particular Microsoft software. Something like a noscript tag. The advantage: doesn't require any standard changes and doesn't break any rules. There's also <!--[if lte ie 6]> (or so) that works in the web browser.

    Not saying it's a very good idea to do this... but it works, I guess.



  • @dhromed said:

    I wonder how the extension got to be something utterly generic as "doc", instead of, say "wrd".

    If I recall correctly, it's been .DOC ever since Word for DOS.

    @dhromed said:

    Nonetheless, I like Word 2007. I do. It's never happened before, but I can honestly say that I like this version of Word.

    My favourite remains Word 2003: I hate HATE HATE that 'ribbon.' Closely followed by Word 6.0 for Windows (not to be confused with Word 6.0 for DOS)



  • @Cad Delworth said:

    If I recall correctly, it's been .DOC ever since Word for DOS.
     

    doc = "document"

    docx = "document with xtra added crap"



  • It is actually the exact same old crap, but expressed as xml instead.



  • @blakeyrat said:

    The catch, of course, is that you have to know you have to do that...
    So, how do you do it? I don't see anything else than plain Copy in my Word:
    Word 2010 clipboard functions



  • @fatbull said:

    @DaveK said:

    http://wordpress.grc.nasa.gov/blog/2009/07/28/resolving-issue-with-pasting-from-word-into-tinymce-visual-editor-extra-style-information/

    Wait ...

    Resolution: By changing both instances of the value “paste_auto_cleanup_on_paste” from “false” to “true” in the following WordPress file,

    There is more than one paste_auto_cleanup_on_paste?

    No.  Well, yes, but no.  But yes.  Well, what I mean is, the advice on that site smells pretty WTFy to me:

    [quote user="http://wordpress.grc.nasa.gov/blog/2009/07/28/resolving-issue-with-pasting-from-word-into-tinymce-visual-editor-extra-style-information/"]

    Resolution: By changing both instances of the value “paste_auto_cleanup_on_paste” from “false” to “true” in the following WordPress file,

    /wp-includes/js/tinymce/plugins/paste/editor_plugin.js

    we achieved the following button behavior, when pasting from Word directly into the visual editor, using the following browsers

    [/quote] Now, if you take a look at that file, you'll see that there are two invocations of

    tinyMCE.getParam("paste_auto_cleanup_on_paste",false))

    and so what they're doing appears to be recommending that rather than setting the preference in the config, wherever that may live, they're suggesting you omit it and change the default-when-not-present argument in the two places that look it up.

    WTF-y, but maybe there's a reason for it, like some kind of bug in tinymce configuration handling.



  • @dhromed said:

    There were other word processing applications around at the time, and I assume people give their file extension some thought-- you know, at least the better part of 45 seconds.
     

    Why?  Who cared?  In those days the only file extensions with any non-application-defined meaning were BAT, COM, and EXE.  It's not like the OS had the slightest idea what DOC meant.  And it didn't matter if other people used different word processors that might want the same extension, because they were never going to have to open the file.  1980s, remember? When someone said "send me that report", they were expecting a copy on paper.

     



  • @Iago said:

    @dhromed said:

    There were other word processing applications around at the time, and I assume people give their file extension some thought-- you know, at least the better part of 45 seconds.
     

    Why?  Who cared?  In those days the only file extensions with any non-application-defined meaning were BAT, COM, and EXE.  It's not like the OS had the slightest idea what DOC meant. 

    +1.  Basically there were two extensions you had to choose from if you were saving a text document; TXT if it was plain ascii, DOC if it was some word-processor's proprietary format.

     



  • @dhromed said:

    @Master Chief said:

    Charles Darwin spinning in his grave as a new source of renewable energy.
     

    You read Dresden Codak, too, yes?


    Can't say as I even know who that is...



  • @Master Chief said:

    Can't say as I even know who that is...

    Not exatcly a "who", it seems...



  • @Cad Delworth said:

    My favourite remains Word 2003: I hate HATE HATE that 'ribbon.' Closely followed by Word 6.0 for Windows (not to be confused with Word 6.0 for DOS)
     

    I used to love WordPerfect 5.1 for DOS :) IMSMR it didn't even have a standard file extension for its documents.


  • Trolleybus Mechanic

    @Zemm said:

    @Cad Delworth said:

    My favourite remains Word 2003: I hate HATE HATE that 'ribbon.' Closely followed by Word 6.0 for Windows (not to be confused with Word 6.0 for DOS)
     

    I used to love WordPerfect 5.1 for DOS :) IMSMR it didn't even have a standard file extension for its documents.

     

    Correct. I still have a ton of WP5.1 documents, and none of them have extensions. 

     A couple, for some reason, are password protected-- with a password that's at least 20 years out of memory. Boo.



  • @Lorne Kates said:

     A couple, for some reason, are password protected-- with a password that's at least 20 years out of memory. Boo.

    No problem!



  • Trolleybus Mechanic

    @DaveK said:

    @Lorne Kates said:

     A couple, for some reason, are password protected-- with a password that's at least 20 years out of memory. Boo.

    No problem!


     

    I love you, DaveK!


Log in to reply