jQuery Plugin To Eliminate Paragraph Orphans - deorphan.js
File Size: | 6.3 KB |
---|---|
Views Total: | 654 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

deorphan.js is a jQuery plugin for eliminating typographical widows and orphans in the paragraphs that find the last two words of a selected element and joins them together with a non-breaking space.
Installation:
# NPM $ npm install jquery.deorphan --save
How to use it:
1. Download and load the deorphan.js plugin after you have jQuery library loaded.
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <script src="jquery.deorphan.js"></script>
2. Call the function on the text container and the plugin will do the rest.
$('p').deOrphan();
Changelog:
2018-10-10
- v2.0.1
This awesome jQuery plugin is developed by megasmack. For more Advanced Usages, please check the demo page or visit the official website.