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.

#117113 unwanted span-tags in JCE-html-code

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 HGH on Monday, 09 June 2025 17:35 BST

HGH

There are several unwanted span-tags in JCE-code In my JCE-code (see: screenshot).

This span-tags are generated by  JCE without my own doing. The additional span-tags make it impossible to make a usefull search.

Can you please checkit up?

Attachments

Ryan

When are these tags generated, when you switch between the Editor and Code tabs?

Ryan Demmer

Lead Developer / CEO / CTO

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

HGH

... that I can not say.

I only can see them in the code-tab. In the editor-tab I only see the clear text.

In the edit tab I work as normal. If I save the article, in most cases all looks good.

Sometimes, the regularlab-tags ({tab, snippet, accordion, etc.} will be brocken. When looking into those articles, snippets, etc. via the code-tab, I find thoses span-tags.

Some other times the regularlabs tags are not touched. Then the normal text or html-tags is often spanned.

Ryan

Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

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

HGH

Site-data is sent to you.

Ryan

I can't really find a cause for this an I am unable to reproduce it. The only thing I can think of is that the span tags are coming from Sourcerer, which uses span tags to style the code that is inserted, eg:

{source}<span style="font-family: monospace; color: #555555;"><span style="color: #0000cc;"><?php some code; ?></span></span>{/source}

Ryan Demmer

Lead Developer / CEO / CTO

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

HGH

Hi Ryan, 

than for your analysis.

It's a bit sade, that you couldn't find a case for this.

I will see for that in the future and tell you about, if I find a reason for that.

I will let the ticket-state to open. 

HGH

Hi Ryan,

I found one reason for the span-tags.

When moving existing code/text in the edit tab,  via "drag and drop", the span-tags are surrounded to the code/text - see this https://www.screenpresso.com/=ARZCfgjfDIYD pic.

When moving existing code/text in the edit tab, via "cntl-c/cntl-v", the span-tags  are not surrounded to the code/text - see this https://www.screenpresso.com/=04e0k6flZbkm pic.

I prefer to work with the "D&D option", so it would be great if you can make a solution.

p.s..

If there are other issue-conditions I could not say at this time.

Ryan

Can you confirm that this only happens in Chrome, or a Chromium / Webkit type browser (eg: Chrome, Brave, Safari)?

I'm not seeing this issue in Firefox.

Ryan Demmer

Lead Developer / CEO / CTO

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

HGH

Hello Ryan,

 

You are right,

in Firefox the issue doesn't exist. I just installed it for testing.😉

I always work with Chrome, Edge, ...  - there the issue is existing. 

Ryan

Please try JCE Pro 2.9.88 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Clear your browser cache after install.

Ryan Demmer

Lead Developer / CEO / CTO

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

HGH

... looks god and works. Thanx