Hello,
I'm trying to create a drop down menu on the WebHtmlEditor that will allow a user to insert custom tags that represent dynamic content when the html they are writing is actually displayed on their site. The code i'm using to create the drop down looks like:
<ighedit:ToolbarDropDown runat="server" Type="Insert" Title="Merge Fields"><Items><ighedit:ToolbarDropDownItem runat="server" Act="CustomText" Value="{Name}" Text="Name" /><ighedit:ToolbarDropDownItem runat="server" Act="CustomText" Value="{FullAddress}" Text="Full Address" /><ighedit:ToolbarDropDownItem runat="server" Act="CustomText" Value="{Street}" Text="Address Street" /><ighedit:ToolbarDropDownItem runat="server" Act="CustomText" Value="{Street2}" Text="Address Street 2" />
<ighedit:ToolbarDropDownItem runat="server" Act="CustomText" Value="{City}" Text="Address City" /><ighedit:ToolbarDropDownItem runat="server" Act="CustomText" Value="{State}" Text="State" /><ighedit:ToolbarDropDownItem runat="server" Act="CustomText" Value="{Zip}" Text="Address Zip" /><ighedit:ToolbarDropDownItem runat="server" Act="CustomText" Value="{Phone}" Text="Phone" /></Items></ighedit:ToolbarDropDown>
This shows the menu and works fine except that when the user selects a value from the drop down it adds it to the begining of the editors content instead of at the cursor position. Is there a setting or a way to handle this so that it places the content at the cursor instead of at the begining of the editor?
- Mike
Browser specific. IE9 puts the text at the begining, Firefox 7.0.1 works as expected.