No matter which option I select from the "Location" drop down on the config form for embedded ads (admin/content/ad/configure/embed) the ad always appears after the rest of the body content.
I'm using a WYSIWYG editor (TinyMCE) so that may have something to do with it.
Comments
Comment #1
jenlamptonThe problem is that the code is looking for the end-of-line marker \n, and if you are using WYSIWYG + TinyMCE withOUT the "Apply source formatting" setting enabaled in your WYSIWYG editor all end-of-line markers will be removed - meaning all ads get placed at the END of the body text.
The solution I came to was this..
1) Configure your WYSIWYG editor:
* edit the TinyMCE profile (admin/settings/wysiwyg/profile/3/edit)
* expand the "Cleanup and output" fieldset
* check the box for "Apply source formatting"
If you stop here, you'll get double line breaks - since Drupal kindly converts every line break into a P tag via it's filtering system :) So proceed to the next step.
2) Configure your input filter:
* configure the input format (/admin/settings/filters/3)
* Make sure the "Line break converter" filter is not active (UNcheck the box next to it)