(This is just a documentation note that might be added somewhere.)

Because of the way the filter is coded, it's possible to add additional styles besides left, right and center that can be invoked by the align attribute. They just need to be prefixed with "caption-". For instance, if you want a left-clearing image, in some CSS file you load, add:

div.caption-left-clear {
  float: left;
  clear: left;
  margin: 10px 10px 10px 0;
}

and then you can do:

[caption align="left-clear"]...[/caption].

I found this very handy.

Comments

populist’s picture

Status: Active » Needs review
StatusFileSize
new486 bytes

Here is a patch that adds this to the README.txt

kmonty’s picture

Status: Needs review » Closed (won't fix)

Thanks dhalbert for pointing this out! While your suggestion is definitely helpful--and we hope other people see this looking for a similar solution--we think including this in the README.txt might serve to confuse people.

orizonmedia’s picture

Issue summary: View changes

On my side, i needed to add some extra class for [caption align=""] attribute for wordpress post migration. WP use align="alignleft" wich break in the wysiwyg editor if not find in the caption-filter.css. This «how to» is a must see for anyelse who need caption filter compatibility between CMS.