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
- Forum
- JCE Editor
- Protect some elements from delete
Support is currently Offline
Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
From 09:00 To 17:00 Europe/London (BST)
Please post your question in the Forum and we will get back to you as soon as we can.
Hi,
Is there a way to protect some elements or elements with specific classes from delete? A client often delete too much while editing, so the <div> construct breaks. That's why it would be very helpful if i could exclude all divs or divs with specific classes from deleting, either for a group/profile or general in editor (not code) mode.
Stefan
Is there a way to protect some elements or elements with specific classes from delete? A client often delete too much while editing, so the <div> construct breaks. That's why it would be very helpful if i could exclude all divs or divs with specific classes from deleting, either for a group/profile or general in editor (not code) mode.
Stefan
Please try this plugin - https://github.com/widgetfactory/jce-editor-noneditable
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Hi Ryan
Thank you very much for this plugin. It can solve a lot of problems with unexperienced users. I've made some tests and it works fine, even with a complex layout. I'm able to set editable and non-editable regions. Thank you, well done!
Unfortunately i have to write more code, because in every structure <div> i want to protect, i have to insert a second <div> in which the user can work. This divs or rather the classes 'mceNonEditable' and 'mceEditable' are visible in the frontend output. Ok, i can remove them with Javascript, but i would prefer the plugin remove this classes or the whole element with php. My idea is the plugin first checks if there is a <div> with the class 'mceNonEditable' or 'mceEditable'. If 'mceNonEditable' and 'mceEditable' are the only classes in this <div> the whole element will be deleted. Otherwise the plugin deletes only the class names for frontend output. Do you think this is possible?
Thank you very much for this plugin. It can solve a lot of problems with unexperienced users. I've made some tests and it works fine, even with a complex layout. I'm able to set editable and non-editable regions. Thank you, well done!
Unfortunately i have to write more code, because in every structure <div> i want to protect, i have to insert a second <div> in which the user can work. This divs or rather the classes 'mceNonEditable' and 'mceEditable' are visible in the frontend output. Ok, i can remove them with Javascript, but i would prefer the plugin remove this classes or the whole element with php. My idea is the plugin first checks if there is a <div> with the class 'mceNonEditable' or 'mceEditable'. If 'mceNonEditable' and 'mceEditable' are the only classes in this <div> the whole element will be deleted. Otherwise the plugin deletes only the class names for frontend output. Do you think this is possible?
Thank you once more, Ryan. This plugin is just awesome and helps a lot with complex structures.
For all who like clean codes too (see post # 2), this two useful extensions helps to clean the code:
https://joomla-extensions.kubik-rubik.de/downloads/eor-easy-output-replacer/joomla-3
https://www.regularlabs.com/extensions/rereplacer
I work with the latter. Just activate list mode an insert 'class="mceNonEditable",mceNonEditable,class="mceEditable",mceEditable' in search filed, done.
For all who like clean codes too (see post # 2), this two useful extensions helps to clean the code:
https://joomla-extensions.kubik-rubik.de/downloads/eor-easy-output-replacer/joomla-3
https://www.regularlabs.com/extensions/rereplacer
I work with the latter. Just activate list mode an insert 'class="mceNonEditable",mceNonEditable,class="mceEditable",mceEditable' in search filed, done.
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!