<p> to <br>

I want to change all </p><p> tags in page content to `
`

to allow text to flow around pictures correctly. Clearly this shouldn't be done in the stored information as it would cause problems with editing in future, but at the point of being served. Is there an easy way to do this, or can you point me to all the places where the content is served so I can hack the code.

Comments

  • acrylian Administrator, Developer
    You can configure tinymce to use instead of <p> for new lines. But it should not matter for floating images actually.
  • Thanks for the reply I'll give it a go. Changing `

    ` to `

    ` does make a difference - the new paragraph starts under the picture, whereas a new line continues around the picture. I've just tried both in firefox and ie.

  • acrylian Administrator, Developer
    Ok,did not notice such a difference. If you add a image within a existing paragraph it should float within it. But anyway, that's why it is configurable..:-)
  • Many thanks, worked a treat! :-)
Sign In or Register to comment.