Support » Fixing WordPress » Rich Editor problem (images)

  • 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):

    Example post after editing HTML (output as I want it to make)

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.


    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!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rich Editor problem (images)’ is closed to new replies.