You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#101966 Multiple spaces

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by pavel45 on Tuesday, 03 December 2019 20:59 GMT

pavel45
How to make that when inserting from Word multiple spaces are removed?

Ryan
Are you referring to paragraphs, linebreaks or spaces in between words in sentences?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

pavel45
Spaces in between words in sentences.

Ryan
Word cleanup won't remove spaces between words, you will have to do that manually.

What does the original content look like?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

pavel45
Word cleanup won't remove spaces between words, you will have to do that manually.

What does the original content look like?


Maybe this can be done using regular expression?

Ryan
Please install JCE Pro 2.8.1 RC11 - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Then in the Editor Global Configration, in the Custom Configuration Variables field, add clipboard_paste_remove_whitespace for the Key and true for the Value, eg:

https://cdn.joomlacontenteditor.net/tmp/101966-multiple-spaces.jpg

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

pavel45
Thanks a lot for your help. Everything worked out!