dokuwiki_add_caption
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dokuwiki_add_caption [2021/06/09 22:00] – admin | dokuwiki_add_caption [2021/06/16 11:01] (current) – sasabe | ||
---|---|---|---|
Line 4: | Line 4: | ||
* This is a small piece of Javascript code to add a caption to a table. | * This is a small piece of Javascript code to add a caption to a table. | ||
* Works with DokuWiki' | * Works with DokuWiki' | ||
- | * Works with WRAP plugin. | + | * Needs WRAP plugin. |
* Just add a line of '' | * Just add a line of '' | ||
Line 12: | Line 12: | ||
<code javascript add_caption.js> | <code javascript add_caption.js> | ||
- | jQuery(' | + | jQuery(' |
let $table = jQuery(this); | let $table = jQuery(this); | ||
let $prevDiv = $table.parent().prev(); | let $prevDiv = $table.parent().prev(); | ||
Line 120: | Line 120: | ||
</ | </ | ||
+ | Since this transformation is made **after** the rendering by DokuWiki, the normal formatting syntax (such as '' | ||
dokuwiki_add_caption.1623243658.txt.gz · Last modified: 2021/06/09 22:00 by admin