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 Online

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

#117144 JCE Editor Issues: Unwanted Inline Styles and " " Insertion

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 Ryan on Monday, 24 March 2025 08:04 GMT

twboy

Dear JCE Editor Support Team,

I am writing to report two issues I am experiencing with the JCE Editor in Joomla.

  1. Unwanted Inline Styles: The editor is automatically inserting the following inline style code into my articles:
    <span style="font-family: var(--bs-body-font-family); font-size: var(--bs-body-font-size); font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align); caret-color: auto;">
    This code is being added without my explicit input, causing unwanted styling. Could you please provide instructions on how to disable this behavior and prevent the editor from inserting this specific code?
  2. "&nbsp;" Insertion: The editor is replacing single space characters with the non-breaking space entity, "&nbsp;". I would like to prevent the JCE Editor from converting single spaces to "&nbsp;". Could you please provide instructions on how to disable this functionality?

Thank you for your assistance in resolving these issues.

Ryan

Unwanted Inline Styles: The editor is automatically inserting the following inline style code into my articles:

<span style="font-family: var(--bs-body-font-family); font-size: var(--bs-body-font-size); font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align); caret-color: auto;">

This code is being added without my explicit input, causing unwanted styling. Could you please provide instructions on how to disable this behavior and prevent the editor from inserting this specific code?

Which browser are you using?

Which extension are you using when you see this? eg: Joomla Article Manager, SP Page Builder etc.

"&nbsp;" Insertion: The editor is replacing single space characters with the non-breaking space entity, "&nbsp;". I would like to prevent the JCE Editor from converting single spaces to "&nbsp;". Could you please provide instructions on how to disable this functionality?

Multiple spaces in content between html tags, ie: the content inside a paragraph, must be seperated by a space character and then multiple non-breaking spaces characters, ie: nbsp for each additional space. This is the correct HTML syntax.

If for some reason you do not wish to follow this standard, go to the Editor Global Configuration (Componetns -> JCE Editor -> Global Configuration) and set Keep non-breaking spaces to No.

Ryan Demmer

Lead Developer / CEO / CTO

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