Radeditor not applying css to selected html

2 posts, 0 answers
  1. Vaibhav
    Vaibhav avatar
    1 posts
    Member since:
    Jun 2014

    Posted 17 Jun 2014 Link to this post

    In my radeditor I have one field

    <acronym unselectable="on" contenteditable="false" style="display: inline-block; background-color: yellow;" expid="100" explabel="First Name">First Name</acronym>

    If I select only this field & apply css then It applies perfectly.

    But if I select this text with other html tags e.g.

    <br>
    <acronym unselectable="on" contenteditable="false" style="display: inline-block; background-color: yellow;" expid="100" explabel="First Name">First Name</acronym>

    & then if I try to apply css on it then only
    tag gets css & not field tag.

    I know this is due to "contenteditable='false'" attribute but I need this attribute.

    note: This strange thing happens only in google chrome (my version : 35.0.1916.153 m)

    Do any one know any solution to it ?

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 18 Jun 2014 Link to this post

    Hello,

    On my end the described behavior is encountered never mind if there is BR or not. 

    Setting the contenteditable="false" attribute to an element you ensure it to not be editable and in the RadEditor such elements are expected to be not editable.

    I am not sure what is the purpose of setting this attribute to an element which should be editable and I am unable to suggest a possible solution different than removing it.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top