2017 © Pedro Peláez
 

yii2-extension yii2-hyphenator

Yii2 extension that provides client-side hyphenation of HTML documents

image

user1007017/yii2-hyphenator

Yii2 extension that provides client-side hyphenation of HTML documents

  • Tuesday, May 9, 2017
  • by user1007017
  • Repository
  • 0 Watchers
  • 0 Stars
  • 8 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

A simple wrapper for Hyphenator.js. It automatically hyphenates texts., (*1)

Requirements

Yii2, (*2)

Usage

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)

GitHub

https://github.com/user1007017/yii2-hyphenator, (*6)

Fork of https://github.com/drenty/yii2-hyphenator, (*7)

To come

Support for Hyphenator_Loader.js, (*8)

The Versions

09/05 2017

dev-master

9999999-dev

Yii2 extension that provides client-side hyphenation of HTML documents

  Sources   Download

BSD 3-Clause

The Requires

 

by Yoda