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

Radeditor not applying css to selected html

1 Answer 26 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Vaibhav
Top achievements
Rank 1
Vaibhav asked on 17 Jun 2014, 09:50 AM
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 ?

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 18 Jun 2014, 11:01 AM
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.

 
Tags
Editor
Asked by
Vaibhav
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or