Credits for the script itself should be attributed to carlos@bueno.org
安装:
Expand this plugin's archive content to wp-content/plugins/
Go to Administration > Plugins and activate this plugin.
In your posts/pages, use this syntax:
[sj [type=full|hyphens|disabled]]
eg:
[sj]
[sj type=hyphens]
Or update your template to contain the classes recognized by Sweet Justice where you wish to justify text;
eg:
< ... class="sweet-justify">...
Three classes are handled:
sweet-justice -> justify and handle hyphens for text contained in this element
sweet-hyphens -> only handle hyphens
justice-denied -> disable justifying and handling hyphens -- useful for a child element