How to prevent users from undoing text in some cases?

I have a editor where a disabled content control is added from plugin when editor is loaded…
but user can still remove it by doing CTRL + Z

is there a way to prevent this so user cannot remove the disabled content control??

Hello @anand.mainali,
You can load the editor with edit:false and fillForms:true permissions Permissions
In this case the user will only be able to edit text inside content controls and won’t be able to remove them.

@Carl this settings doesn’t seems to fit for me… i’ve editable content below the content control as well… and i just want to prevent users from removing the content control by doing CTRL + Z.

hi @Carl, any update on this??

In this case you can insert a CC that is locked for deletion (ContentControlLock), so the deletion won’t be possible.

1 Like

Hi @Carl, the locked content control is adding in editor by plugin after editor is loaded.
But, when user presses CTRL+Z the locked content control can be edited.

I’ve added a check in backend to check if its completely removed by adding some random string in content control and then converting the docx to html and checking if that string exists.

But when locked content control is changed to editable by pressing CTRL+Z, my logic doesn’t work as the random string still exists.

Is there any way to do this??