I'd appreciate some help with this:
I have a working Rad Editor in which I have three custom tools. All three tools work correctly, and the images that display on the three buttons show up properly on page_load. However, when there is a post back, I lose the three images. The click of any of the three buttons still has the desired result, though.
Here is the code:
| <telerik:EditorToolGroup> |
| <telerik:EditorTool Name="Arrow" ShortCut="Shift+Alt+r"/> |
| <telerik:EditorTool Name="Yen"/> |
| <telerik:EditorTool Name="Euro"/> |
| </telerik:EditorToolGroup> |
| <style type="text/css"> |
| .Arrow |
| { |
| background-image: url("../img/rt_icon2.gif")!important; |
| } |
| .Yen |
| { |
| background-image: url("../img/yen2.jpg")!important; |
| } |
| .Euro |
| { |
| background-image: url("../img/euro.jpg")!important; |
| } |
| </style> |
| <script type="text/javascript"> |
| Telerik.Web.UI.Editor.CommandList["Arrow"] = function(commandName, editor, args) |
| { |
| editor.pasteHtml("<font style='FONT-SIZE: 11pt; FONT-STYLE: normal; FONT-FAMILY: wingdings'>è</font>"); |
| }; |
| Telerik.Web.UI.Editor.CommandList["Yen"] = function(commandName, editor, args) |
| { |
| editor.pasteHtml("<font style='FONT-SIZE: 11pt; FONT-STYLE: normal; FONT-FAMILY: arial'>Â¥</font>"); |
| }; |
| Telerik.Web.UI.Editor.CommandList["Euro"] = function(commandName, editor, args) |
| { |
| editor.pasteHtml("<font style='FONT-SIZE: 11pt; FONT-STYLE: normal; FONT-FAMILY: arial'>€</font>"); |
| }; |
| </script> |
Thanks in advance for your help in determining how to avoid losing my images!
Michael
