Hi,
For the application I am working on, it would be very helpful if I could give my users a sort of 'limited' HTML editor to serve as a presentation template editor. What I would like them to be able to do is edit HTML and drag in database 'tokens' in a manner sort of like how images are dragged in in the example shown at: http://demos.telerik.com/aspnet-ajax/editor/examples/treeviewandeditor/defaultcs.aspx ..
These tokens would correspond to field names that would act as placeholders. As a result, once a 'token' has been inserted, I don't want the user to be able to alter it since the user changing a character to the wrong thing could result in a mismatch where the intended database field is not found.
I wondered if anything like this is possible or you had come across any similar scenario. The only thing that I could think of doing would be to somehow track the start/stop positions of each token that had been placed in the editor, then track the cursor location when the user is using the editor and make the editor readonly when the cursor is 'inside' a token. However, I'm not quite sure how I would accomplish that, and I would still want to retain the ability to delete a token itself.
I hope that description makes sense.. Any help appreciated..
For the application I am working on, it would be very helpful if I could give my users a sort of 'limited' HTML editor to serve as a presentation template editor. What I would like them to be able to do is edit HTML and drag in database 'tokens' in a manner sort of like how images are dragged in in the example shown at: http://demos.telerik.com/aspnet-ajax/editor/examples/treeviewandeditor/defaultcs.aspx ..
These tokens would correspond to field names that would act as placeholders. As a result, once a 'token' has been inserted, I don't want the user to be able to alter it since the user changing a character to the wrong thing could result in a mismatch where the intended database field is not found.
I wondered if anything like this is possible or you had come across any similar scenario. The only thing that I could think of doing would be to somehow track the start/stop positions of each token that had been placed in the editor, then track the cursor location when the user is using the editor and make the editor readonly when the cursor is 'inside' a token. However, I'm not quite sure how I would accomplish that, and I would still want to retain the ability to delete a token itself.
I hope that description makes sense.. Any help appreciated..
