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.

#105826 Extended elements get removed despite declared in the editor profile

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 wgschwenter on Friday, 06 November 2020 11:59 GMT

wgschwenter
As of version 2.9.1 we have the issue that extended elements get removed despite declaration in the editor profile. Anyone else has this issue?

Ryan
Please post an example or screenshot of the extended elements that are being removed.

Ryan Demmer

Lead Developer / CEO / CTO

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

wgschwenter
Example tag:

<hapi-liveprice-room room="LH"></hapi-liveprice-room>

In the extended elements I tried those combinations:

hapi-liveprice-room
hapi-liveprice-room[*]

Thanks for your help.

Kind regards.

Ryan
It is better now to handle this as XML in a Code Block, so you will be able to see it and edit it without having to use the Code Editor.

In Editor Profiles -> Editor Parameters -> Advanced, set Allow Custom XML to Yes.

Ryan Demmer

Lead Developer / CEO / CTO

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

Ryan
I see there is a bug in the current version where extended element tags with a dash in the name are incorrectly removed.

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

Ryan Demmer

Lead Developer / CEO / CTO

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

wgschwenter
Ok, thanks, will do.

I'm just curious, how would I embed the XML as a code block?

Kind regards.

Ryan
As an alternative to using Code Blocks, see my previous post.

I'm just curious, how would I embed the XML as a code block?


Just paste the code into the editor, and it will be converted into a Code Block. Any existing xml code will also be converted when you load the editor.

Ryan Demmer

Lead Developer / CEO / CTO

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

wgschwenter
Just fyi, it is still removed in the beta.

Ryan
Just fyi, it is still removed in the beta.


I'm not seeing this in my tests. Is it removed when saving, or when toggling the editor?

Ryan Demmer

Lead Developer / CEO / CTO

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

wgschwenter
Apparently this only happens, when the custom xml tag is wrapped by a <p> element.

When use a code block as suggested above it works perfectly fine.

Thanks for the help.