Jump to content

Recommended Posts

Posted

Hi,

I'm not sure it's very useful if you're neither French nor seriously obsessive, but just in case...

In French, when using a CKEditor or TinyMCE field, it is easy to insert a non-breaking space before exclamation marks, question marks, colons, semicolons, and so on, so that they do not wrap to the next line on their own, at the end of a sentence or in the middle of one.

This is not possible in simple text fields, single-line fields, or non-rich-text textarea fields and this often causes formatting issues that are not very ‘attractive’, especially in responsive usage, remember, i said obsessive 😂.

So I created for myself a small textformatter module that allows you (well pw for you actually) to insert a non-breaking space before or after certain specific characters in a text or textarea field.

It's completely useless and should not be used in a  rich-text field, but if it's ever useful to anyone, it's available on GitHub at this address.
https://github.com/virtualgadjo/Processwire-module-espaces-insecables-dans-champs-text

have a nice day

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...