Hi everyone,
I am working on the page that allows a user to edit text. Everything appear to be fine except that this text has to support fields (that's how they call it in MS word). Basically this text is a template where user can insert fields or variables which will be replaced with actual values when some event occurs. I am able to implement it using contenteditable="false" and unselectable="on". However there some cases when the html i am inserting is modified and I am loosing those attributes. One of such cases is when I try to insert the html code below into empty table cell. Once I do that field seem to appear in the editor, but once I switch to HTML or submit a form i am loosing contenteditable and unselectable attributes
I am not sure if this is browser issue or telerik specific. Does anyone have any experience with this or anyone knows a control that natively supports such functionality.
Thank you!
Aleksey
I am working on the page that allows a user to edit text. Everything appear to be fine except that this text has to support fields (that's how they call it in MS word). Basically this text is a template where user can insert fields or variables which will be replaced with actual values when some event occurs. I am able to implement it using contenteditable="false" and unselectable="on". However there some cases when the html i am inserting is modified and I am loosing those attributes. One of such cases is when I try to insert the html code below into empty table cell. Once I do that field seem to appear in the editor, but once I switch to HTML or submit a form i am loosing contenteditable and unselectable attributes
<
span
class
=
"editorField"
contenteditable
=
"false"
unselectable
=
"on" variable="FieldName"
>Field Text</
span
>
I am not sure if this is browser issue or telerik specific. Does anyone have any experience with this or anyone knows a control that natively supports such functionality.
Thank you!
Aleksey