This is a migrated thread and some comments may be shown as answers.

Immutable Elements not working as intended?

4 Answers 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 15 Sep 2016, 07:43 PM

In the demo (http://demos.telerik.com/kendo-ui/editor/immutable-elements) or the preview in the api reference (http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#configuration-immutables) the immutable elements (html elements that have the contenteditable="false" attribute) can be deleted.

They can be selected by double clicking and deleted by pressing Delete. Or just selecting everything in the editor and pressing Delete. Tested with Chrome 53 and Internet Explorer 11.

I am confused as the description for Immutable Elements states:

"The Kendo UI Editor widget and its Immutable Elements feature enables you to predefine elements in the content area that cannot be edited by the end user."

I assumed that edited also meant deleted. Is this the intended behaviour?

4 Answers, 1 is accepted

Sort by
0
Accepted
Stanimir
Telerik team
answered on 19 Sep 2016, 05:40 AM
Hi,

"The Kendo UI Editor widget and its Immutable Elements feature enables you to predefine elements in the content area that cannot be edited by the end user." - This means that HTML content of the element can not be altered. It's like making a DIV element containing complicated HTML content behave like an image (img). The intention here is for the user to be able to delete the entire element, but not parts of it.

Thank you for your feedback that the explanation of the feature is some what misleading. I will notify the documentation team about it. 



Regards,
Stanimir
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Alex
Top achievements
Rank 1
answered on 19 Sep 2016, 07:51 AM
Thanks, that explains the behaviour!
0
Andrey
Top achievements
Rank 1
answered on 23 Oct 2016, 03:39 AM

This defeats the purpose of immutable elements!!!!!

Any way to prevent this ?

 

0
Ianko
Telerik team
answered on 25 Oct 2016, 09:46 AM

Hello Andrey,

 

I am afraid no. Currently there is no way to prevent an element in the content to be deleted.

 

You can submit this as a feedback in the Kendo Feedback portal,, so that it is can be considered by the dev team and the PM of the product.

 

Regards,
Ianko
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Tags
Editor
Asked by
Alex
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Alex
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or