yii2-hyphenator A simple wrapper for Hyphenator.js

  1. Requirements
  2. Usage
  3. GitHub
  4. To come

A simple wrapper for Hyphenator.js. It automatically hyphenates texts.

Requirements

  • Yii2

Usage

  • Install this extension via composer:
composer require drenty/yii2-hyphenator
  • Register the widget in your view (do not echo it):
Hyphenator::widget([
    'language' => 'en',
    '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".

GitHub

https://github.com/drenty/yii2-hyphenator

To come

  • Support for Hyphenator_Loader.js
0 0
3 followers
0 downloads
Yii Version: 2.0
License: BSD-2-Clause
Category: User Interface
Developed by: davey`
Created on: Oct 28, 2014
Last updated: 3 years ago

Related Extensions