dev-master
9999999-devYii2 extension that provides client-side hyphenation of HTML documents
BSD 3-Clause
The Requires
- php >=5.4.0
- yiisoft/yii2 *
by Yoda
Wallogit.com
2017 © Pedro Peláez
Yii2 extension that provides client-side hyphenation of HTML documents
A simple wrapper for Hyphenator.js. It automatically hyphenates texts., (*1)
Yii2, (*2)
Install this extension via composer:, (*3)
composer require user1007017/yii2-hyphenator
Register the widget in your view (do not echo it):, (*4)
use user1007017\hyphenator\Hyphenator;
Hyphenator::widget([
'language' => 'de',
'pluginOptions' => [
'minwordlength' => 4
]
]);
Add class="hyphenate" to the elements whose text should be hyphenated (children do inherit this setting). Hyphenation can be stopped by adding class="donthyphenate"., (*5)
https://github.com/user1007017/yii2-hyphenator, (*6)
Fork of https://github.com/drenty/yii2-hyphenator, (*7)
Support for Hyphenator_Loader.js, (*8)
Yii2 extension that provides client-side hyphenation of HTML documents
BSD 3-Clause