WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WordPress editor removes my "class" attributes from pasted html (4 posts)

  1. mike123
    Member
    Posted 8 years ago #

    Hello,

    I need to insert html generated by a seperate program into wordpress posts. this html contains class attributes to refer to css styles, like <td class="movenumber">1</td>. I added the needed styles to my style.css file.

    The problem is that after saving the post, the html will be stripped of all class attributes, like <td>1</td>. Can I change this?

    Any help would be greatly appreciated.

  2. mike123
    Member
    Posted 8 years ago #

    PS: I am using WordPress 2.0.2. The problem occurs when using the new 'rich' editor (klicking on the 'html' button and pasting there) and when pasting into the 'old' html editor.

    When saving and reopening the post or when klicking on "Save and continue editing", the html code will be changed.

  3. mike123
    Member
    Posted 8 years ago #

    I found out that it seems to work as intended, if the user has the administrator role. Any idea why this is? Any idea who I can achieve that normal Authors can write posts with html tags as described above?

  4. mike123
    Member
    Posted 8 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags