Immutable Elements not working as intended?

5 posts, 1 answers
  1. Alexandru
    Alexandru avatar
    4 posts
    Member since:
    Sep 2016

    Posted 15 Sep Link to this post

    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?

  2. Answer
    Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 19 Sep Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Alexandru
    Alexandru avatar
    4 posts
    Member since:
    Sep 2016

    Posted 19 Sep in reply to Stanimir Link to this post

    Thanks, that explains the behaviour!
  5. Andrey
    Andrey avatar
    1 posts
    Member since:
    Aug 2013

    Posted 22 Oct in reply to Stanimir Link to this post

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

    Any way to prevent this ?

     

  6. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 25 Oct Link to this post

    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.
Back to Top
UI for ASP.NET MVC is VS 2017 Ready