WordPress.org

Ready to get started?Download WordPress

Forums

Rich Editor problem (images) (3 posts)

  1. macamba
    Member
    Posted 7 years ago #

    Hi,
    I´m using the rich editor (tinymce) to create posts,
    But I don´t like the way it´s putting images in my posts.
    The HTML for images that it puts out now is:
    align="left" and align="right"
    But I want it to use / put out:
    class="alignleft" and class="alignright"

    Why? Because now the images are to close to the text and I want it to have at least some PX of space between an image and the text.
    The only thing that I can do to fix this is changing my posts HTML everytime by hand, but I just want it to put out the richt code.
    I tried to change/hack the wp-includes/js/tinymce/tiny_mce.js but it´s to big, so I better don´t even start changing it because I´m not an expert in that.
    Anyone here who´ll know how/were to fix this "bug" in te javascript-editor???

    Example post of image way to close to the text (wrong richeditor output): http://www.macamba.nl/2006/09/nueva-esparta-respecteert-prive-bezittingen/nl/

    Example post after editing HTML (output as I want it to make)
    http://www.macamba.nl/2006/09/macambanl-gaat-internationaal/nl/

  2. thornomad
    Member
    Posted 7 years ago #

    Why not change the default style for the img tag inside your <div class="entrytext"> ?

    .entrytext img { }

    This won't solve the left right issue, but could help with the padding problem.

    D

  3. macamba
    Member
    Posted 7 years ago #

    Thanks thornomad, I want to try that, but to be exactly, wich template should I change and what should I put in there?

    If you could give me a bit of an example that would be great! Thanks so far!!

Topic Closed

This topic has been closed to new replies.

About this Topic