Caption Filter is a module that converts WordPress-style [caption] tags into
HTML markup. It also allows floating images left or right in a way that avoids
allowing users access to "style" attributes, moving both the image and the
caption at the same time.
Installation
------------
1. Enable the module on the modules page.
2. Go to the admin/settings/filters page and enable the "Caption filter" to the
input format(s) that should be allowed to use this filter.
3. IMPORTANT: After enabling the fitler, click the "Rearrange" tab within the
input format configuration. Make sure that the "Caption filter" is run AFTER
the "HTML filter" (if enabled). Generally having the Caption filter as the
last filter run will be appropriate.
Usage
-----
While entering content, choose an input format that utilizes the caption filter.
In a plain textarea, the entered code should look like this:
A simple caption:
[caption]<img src="" alt="" />This is an image caption[/caption]
Aligned Caption (can be left, center or right):
[caption align=right]<img src="" alt="" />This is a right aligned caption[/caption]
View source
- Caption Filter is a module that converts WordPress-style [caption] tags into
- HTML markup. It also allows floating images left or right in a way that avoids
- allowing users access to "style" attributes, moving both the image and the
- caption at the same time.
-
- Installation
- ------------
-
- 1. Enable the module on the modules page.
-
- 2. Go to the admin/settings/filters page and enable the "Caption filter" to the
- input format(s) that should be allowed to use this filter.
-
- 3. IMPORTANT: After enabling the fitler, click the "Rearrange" tab within the
- input format configuration. Make sure that the "Caption filter" is run AFTER
- the "HTML filter" (if enabled). Generally having the Caption filter as the
- last filter run will be appropriate.
-
- Usage
- -----
-
- While entering content, choose an input format that utilizes the caption filter.
- In a plain textarea, the entered code should look like this:
-
- A simple caption:
- [caption]
This is an image caption[/caption]
-
- Aligned Caption (can be left, center or right):
- [caption align=right]
This is a right aligned caption[/caption]