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.

#107785 Ban deleting tags

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 iorbita on Friday, 28 May 2021 22:40 BST

iorbita
Hi, is it possible to ban deleting tags? Let me explain, "mceNonEditable" class is very useful to avoid deleting content, but if I want to protect a tag from deletion, what should I do? Example:

<section class="row">
	<div class="col-xs-12 col-md-6 cinema-det"></div>	
	<div class="col-xs-12 col-md-6 cinema-det"></div>
</section>
If I add "mceNonEditable" class to <section class="row"> tag or to <div class="col-xs-12 col-md-6 cinema-det"> tag it’s all the content that is no more editable, the ideal would be to have a "mceNonDeletable" class :) Thanks, Lorenzo

iorbita
Hi,
… any news on this?

iorbita
...apparently I have no chance to have an answer to this question... 🙁

Ryan
It's not currently possible to prevent tags from being deleted. This may change in future if I can figure out how to do it, but this non-editable stuff is based on the Tinymce implementation, which itself currently does not prevent non-editable tags from being deleted.

Ryan Demmer

Lead Developer / CEO / CTO

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

iorbita
I think if you find how to add this functionality to JCE it will be a big step forward for the component, it would give the lambda user the opportunity to edit the layout without breaking it