usewaypoint / email-builder-js

A free and open-source block-based email template builder.
https://emailbuilderjs.com
MIT License
470 stars 168 forks source link

Feature Request: Allow setting word break #120

Closed timokoessler closed 1 month ago

timokoessler commented 1 month ago

It would be nice if it were possible to set the css word-break property, e.g. to force wrapping of long inline URLs.

jordanisip commented 1 month ago

Hi @timokoessler, appreciate the suggestion. Just as a heads up, we've held off on this since word-break isn't properly supported across email clients.

In many clients, word-break: break-word applies word-break: break-all which is much less ideal since it breaks in the middle of a word. Example:

CleanShot 2024-08-10 at 09 57 05@2x

So at the moment, this is not something we will fix since lean toward wide client support that degrades well. However, in the future we hope to add the ability to set custom CSS rules from the editor so folks can override if it makes sense for their audience.