Use soft hyphen (­) HTML tag in Text (plain) and Text (plain, long) fields (eg. title).
Usage on UI
- Create your field (in type of Text (plain) or Text (plain, long) )
- Check Enable soft hyphen checkbox on Manage display tab on given field Plain text field formatter setting.
- Fill your field data like this:
Lorem­Ipsumissimply dummy­textoftheprinting and typesetting industry.
Usage on twig file
You can use shy twig filter in twig file {{ field_name|shy }}
Similar module
Background
There is a nice article from Tamás Hajas about this topic, https://integralvision.eu/en/blog/long-words-case-browser
Project information
- Project categories: Content editing experience
60 sites report using this module
- Created by attek25 on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.


