ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

P tags wrapping everything in XHTML Mode - HELP!!!

April 28, 2009 1:39pm

Subscribe [3]
  • #1 / Apr 28, 2009 1:39pm

    sciexpression

    19 posts

    I find this incredibly annoying.

    I have given my client some CSS selectors to float images both left and right of text.

    When they are editing pages they have Xhtml formatting mode switched ON so they dont have to enter tags to specify paragraphs.

    Now the problem arises when they upload and insert an image because the image is by default wrapped by a tag by default of the Xhtml formating.

    This then causes spacing issues with all floated images.

    How do i keep the Xhtml mode and stop the wrapping from occuring… or does anyone have a neat idea?

  • #2 / Apr 28, 2009 3:07pm

    Ingmar

    29245 posts

    You can set the formatting on a field by field basis. Just use a custom field to hold the image URL.

  • #3 / Apr 28, 2009 3:49pm

    grrramps

    2219 posts

    I find this incredibly annoying.

    This then causes spacing issues with all floated images.

    How do i keep the Xhtml mode and stop the wrapping from occuring… or does anyone have a neat idea?

    I usually set uploaded images to float left or right (makes it easy to adjust once the image is uploaded and the code is placed in the appropriate entry field) and apply CSS to the div for spacing. It works fine when the upload image code is placed as a paragraph.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases