The Custom Formatters module allows users to select three Text Field Formatters.
- Three formatter types:
-
ROT13
Implement formatters by Rotating text character by 13. -
Slugify
Add Slug in text. -
Tooltip
Add tooltip on text.
-
-
Download the qTip2 library from https://github.com/qTip2/qTip2
-
Unzip the file and rename the folder to "qTip2" (pay attention to the case of the letters)
-
Put the folder in one of the following places relative to drupal root.
- libraries
- profiles/PROFILE-NAME/libraries
- sites/all/libraries
- sites/SITE-NAME/libraries
-
The following files are required (last file is required for javascript debugging)
- jquery.qtip.min.js
- jquery.qtip.min.css
-
Ensure you have a valid path similar to this one for all files
- Ex: libraries/qTip2/dist/jquery.qtip.min.js
-
Adding following line at end of returning array in file vendor/composer/autoload_psr4.php
- 'Cocur\Slugify\' => array($vendorDir . '/cocur/slugify/src'),
Composer may be used to download the library as follows...
- Open a command line terminal and navigate to the same directory as your
composer.json file and run
composer require cocur/slugify
That's it!