• I’ve noticed unexplainable HTML generated by WordPress on my blog. A representative article can be found at “https://citizenopines.org/2010/08/19/public-policy/what-is-marriage-perry-vs-schwarzenegger/”. One discrepancy is that midway through the article the font is changed to New Times Roman when the theme has specified Arial. I can see nothing about the text which should cause any kind of change. Another discrepancy pertains to an unintended change in the size of the font.

    In this case the post was originally authored by OpenOffice Writer. At the point where the Font Face is changed there is an occurrence of some italicized text. Text following the italicized text is explicitly changed to “small”. As a result the way the HTML is generated there are explicit style attributes being written in every tag. This makes it extremely difficult to correct such problems by editing (fixing) the HTML.

    This leads me to wanting to know more about how the HTML generation is performed and what affect different authoring tools may have on the results. Can anyone refer me to applicable reference material.

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter aajax

    (@aajax)

    At this point I think I understand the fallacy of using a word processor for composing posts. However, I would like to fix some of those I’ve already done. I’ve now looked at the code and know enough about the HTML discrepancies to fix them. Therefore, I went to an HTML editor (Aptana Studio in this case) and used it to repair the faulty HTML. However, when I pasted the result into the WordPress editor (set in HTML mode) it was modified. The modification consisted of what looked to be the addition of an HTML break tag (i.e.,
    ) everywhere there was an EOL. Since WordPress does not do HTML generation I’m not sure what to call this but it sure looks a lot like it to me.

    There are a couples of reasons for using Aptana and not the WordPress supplied editor for repairing the HTML.

    1. I couldn’t find any way to do simple find/replace on strings.
    2. In HTML mode it looks like you have to live with just a few lines at a time being visible and those lines are pretty short.

    I’d say both limitations qualify as reasons for concluding the WordPress editor is not especially useful for authoring.

    Did you try using the “Paste From Word” button (it’s the one with the “W” overlaid on a clipboard) in the Visual Editor?

    I haven’t been able to find any such button. If there is a secret I’d be grateful for a tip.

    You might research this a little bit if you’re an open source alternative, do it yourself, willing to experiment, I’ll give that a try, do it yourself and just make it work kind of person.
    “Integrated Content Environment ” WordPress “how to” ICE

    Thanks for the referral. I do appreciate that but I looked into this but it seems like a lot of infrastructure to maintain just for the sake of being able to edit posts.

    I haven’t been able to find any such button. If there is a secret I’d be grateful for a tip.

    On the tool bar in the visual editor, you will find a button labeled “Show/Hide Kitchen Sink” on roll-over. It should be the last one on the right. If you click on it, or type “Alt+Shift+Z”, it should reveal another entire row of editing tools for the visual editor. That’s where the paste from word button can be found.

    I haven’t been able to find any such button. If there is a secret I’d be grateful for a tip.

    You need to get the second row of editing icons showing, but clicking the button in the first row called “show kitchen sink.”

    You’ll then see a little icon with the Word “W” on it:

    https://www.likoma.com/show-hide-the-kitchen-sink/

    aajax — I know exactly what you are talking about… this was a “fix” 3.0.5 to 3.1.1 I due believe… someone, somewhere decided when using the Cut and Paste “Word Doc Icon” it wasn’t working correctly and “fixed” it… now, it is actually broken… I have all different revisions of the “new” wordpress 3.0 on a number of websites and only 3.1.1 screws up the code when pasted into the Word Doc and/or Text Doc icon on the extended what is ?kitchen sink? in the TinyMice editor…

    @aajax, you are not going nutz hear and I have read through all the comments and most have missed the point, or never realized that WP TinyMce editor had the features to paste Word Doc’s etc into the post.. In the “kitchensink” it would be either the icon with the “Folder and T(ext)” or “Folder with W(ord)” that is now BROKEN

    it’s easy to say don’t use MS Word to create the content that gets pasted into the editor – but that’s all some clients know how to use

    would love a real fix for this

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Faulty HTML is being generated’ is closed to new replies.