|
Rank: Newbie Groups: Member
Joined: 7/30/2009 Posts: 4
|
Hi, When I use an HTML <select> and a <input> button the text is added correctly where the cursor is inside the HTML Editor, but if I use a .NET <asp:DropDownList> then the text is always added at the end of the HTML Editor. I need to use the .NET control so I can populate it dynamically. Any help will be greatly appreciated! The code is very simple:
Code: HTML/ASPX
<%@ Page Language="C#" MasterPageFile="MainMenu.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestWebApp._Default" Title="HAHAHAHAHA"%>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentMain" runat="server">
<script language="javascript" type='text/javascript'>
function InsertTextDemo() //This works fine with <select> and <input>
{
var editor = eo_GetObject("Editor1");
var selObj = document.getElementById("ddFields");
var selIndex = selObj.selectedIndex;
editor.execCommand("InsertHTML",selObj.options[selIndex].value);
}
function InsertTextDemo2(Texto)
{
var objeditor = eo_GetObject("Editor1");
// var selObj1 = document.getElementById("ddList");
// var selIndex1 = selObj1.selectedIndex;
objeditor.execCommand("InsertHTML",Texto);
}
</script>
<select id="ddFields">
<option value="OOOne">One</option>
<option value="TTTwo">Two</option>
</select>
<input type="button" value="Add Field" onclick="InsertTextDemo()" />
<asp:DropDownList ID="ddList" runat="server" AutoPostBack="false" onchange="InsertTextDemo2(this.options[this.selectedIndex].value)">
<asp:ListItem Text="One .NET" Value="OOne.NET"></asp:ListItem>
<asp:ListItem Text="Two .NET" Value="TTwo.NET"></asp:ListItem>
</asp:DropDownList>
<asp:Button ID="btnSave" runat="server" Text="Save" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentFooter" runat="server">
<%--Here goes the rest of the Editor....--%>
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We tested the code at here in a single page without the master page and it seems to be working fine. Can you create a single test page and see if it works for you?
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 7/30/2009 Posts: 4
|
Thanks for the prompt reply. I tried your suggestion but did not work. Still the text is always added at the end of the doc. Maybe something in my Editor? Here's the entire code: Thanks!!
Code: HTML/ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TestWebApp.WebForm1" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<script language="javascript" type='text/javascript'>
function InsertTextDemo2(Texto)
{
var objeditor = eo_GetObject("Editor1");
objeditor.execCommand("InsertHTML",Texto);
}
</script>
<br />
<br /> <br />
<br />
<asp:DropDownList ID="ddList" runat="server" AutoPostBack="false" onchange="InsertTextDemo2(this.options[this.selectedIndex].value)"> <%----%>
<asp:ListItem Text="One .NET" Value="OOne.NET"></asp:ListItem>
<asp:ListItem Text="Two .NET" Value="TTwo.NET"></asp:ListItem>
</asp:DropDownList>
<asp:Label ID="lblMessage" runat="server"></asp:Label><br />
<br />
<asp:Button ID="btnSave" runat="server" Text="Save" />
<hr />
<br />
<br />
<hr />
<eo:Editor ID="Editor1" runat="server" DesignTabButtonText='"padding-left:18px;padding-top:3px;">Design</div>'
Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" Height="320px" HighlightColor="255, 255, 192" HtmlTabButtonText='<div style="padding-left:18px;padding-top:3px;">HTML</div>'
PreviewTabButtonText='<div style="padding-left:18px;padding-top:3px;">Preview</div>'
ToolBarSkin="Office2003_XPStyle" Width="500px" ToolBarItems="HeaderToolBar0" ToolBarSet="Custom">
<FooterStyle CssText="padding-right: 2px; padding-left: 2px; padding-bottom: 2px; padding-top: 0px; background-color:#9ebef5;" />
<BreadcrumbItemStyle CssText="background-color:#d7e4fa;border-bottom-color:#002d96;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#002d96;border-left-style:solid;border-left-width:1px;border-right-color:#002d96;border-right-style:solid;border-right-width:1px;border-top-color:#002d96;border-top-style:solid;border-top-width:1px;font-family:tahoma;font-size:12px;margin-top:1px;padding-bottom:1px;padding-left:3px;padding-right:3px;padding-top:1px;" />
<EmoticonStyle CssText="background-color:white;border-bottom-color:#c5d3ed;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#c5d3ed;border-left-style:solid;border-left-width:1px;border-right-color:#c5d3ed;border-right-style:solid;border-right-width:1px;border-top-color:#c5d3ed;border-top-style:solid;border-top-width:1px;padding-bottom:2px;padding-left:2px;padding-right:2px;padding-top:2px;" />
<BreadcrumbItemHoverStyle CssText="background-color:#ffd69c;border-bottom-color:#002d96;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#002d96;border-left-style:solid;border-left-width:1px;border-right-color:#002d96;border-right-style:solid;border-right-width:1px;border-top-color:#002d96;border-top-style:solid;border-top-width:1px;font-family:tahoma;font-size:12px;margin-top:1px;padding-bottom:1px;padding-left:3px;padding-right:3px;padding-top:1px;" />
<HeaderStyle CssText="background-color:#9ebef5;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" />
<BreadcrumbItemSeparatorStyle CssText="width: 3px; height: 10px" />
<DesignTabButtonStyles>
<NormalStyle CssText="font-size: 12px; background-image: url(00102001); width: 63px; font-family: tahoma; height: 21px" />
<HoverStyle CssText="font-size: 12px; background-image: url(00102002); width: 63px; font-family: tahoma; height: 21px" />
<SelectedStyle CssText="font-size: 12px; background-image: url(00102003); width: 63px; font-family: tahoma; height: 21px" />
</DesignTabButtonStyles>
<EmoticonDropDownStyle CssText="border-right: #435f96 1px solid; border-top: #435f96 1px solid; border-left: #435f96 1px solid; border-bottom: #435f96 1px solid; background-color: #eef3fa" />
<BreadcrumbLabelStyle CssText="padding-right: 6px; padding-left: 6px; font-size: 12px; padding-top: 1px; font-family: tahoma" />
<PreviewTabButtonStyles>
<NormalStyle CssText="font-size: 12px; background-image: url(00102007); width: 63px; font-family: tahoma; height: 21px" />
<HoverStyle CssText="font-size: 12px; background-image: url(00102008); width: 63px; font-family: tahoma; height: 21px" />
<SelectedStyle CssText="font-size: 12px; background-image: url(00102009); width: 63px; font-family: tahoma; height: 21px" />
</PreviewTabButtonStyles>
<BreadcrumbDropDownStyle CssText="border-right: #435f96 1px solid; border-top: #435f96 1px solid; border-left: #435f96 1px solid; border-bottom: #435f96 1px solid; background-color: #eef3fa" />
<HtmlTabButtonStyles>
<NormalStyle CssText="font-size: 12px; background-image: url(00102004); width: 63px; font-family: tahoma; height: 21px" />
<HoverStyle CssText="font-size: 12px; background-image: url(00102005); width: 63px; font-family: tahoma; height: 21px" />
<SelectedStyle CssText="font-size: 12px; background-image: url(00102006); width: 63px; font-family: tahoma; height: 21px" />
</HtmlTabButtonStyles>
<EditAreaStyle CssText="border-bottom-color:gray;border-bottom-style:solid;border-bottom-width:1px;border-left-color:gray;border-left-style:solid;border-left-width:1px;border-right-color:gray;border-right-style:solid;border-right-width:1px;border-top-color:gray;border-top-style:solid;border-top-width:1px;" />
<CustomFooterTemplate>
<div style="float: left; width: 200px;">
<asp:PlaceHolder ID="ViewTabs" runat="server"></asp:PlaceHolder>
</div>
<div style="padding-top: 1px">
<asp:PlaceHolder ID="Breadcrumb" runat="server"></asp:PlaceHolder>
</div>
</CustomFooterTemplate>
<CustomHeaderTemplate>
<eo:ToolBar ID="HeaderToolBar0" runat="server" BackgroundImage="00100203" BackgroundImageLeft="00100201"
BackgroundImageRight="00100202" SeparatorImage="00100204" Width="100%">
<ItemTemplates>
<eo:ToolBarItem Type="Custom">
<HoverStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"></HoverStyle>
<DownStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"></DownStyle>
<NormalStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;"></NormalStyle>
</eo:ToolBarItem>
<eo:ToolBarItem Type="DropDownMenu">
<HoverStyle CssText="background-color:#ffe1ac;background-image:url('00100206');background-position-x:right;border-bottom-color:#335ea8;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#335ea8;border-left-style:solid;border-left-width:1px;border-right-color:#335ea8;border-right-style:solid;border-right-width:1px;border-top-color:#335ea8;border-top-style:solid;border-top-width:1px;cursor:hand;padding-bottom:2px;padding-left:3px;padding-right:3px;padding-top:2px;"></HoverStyle>
<DownStyle CssText="BORDER-RIGHT: #335ea8 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #335ea8 1px solid; PADDING-LEFT: 4px; BACKGROUND-POSITION-X: right; BACKGROUND-IMAGE: url(00100206); PADDING-BOTTOM: 1px; BORDER-LEFT: #335ea8 1px solid; CURSOR: hand; PADDING-TOP: 3px; BORDER-BOTTOM: #335ea8 1px solid; BACKGROUND-COLOR: #ffe1ac"></DownStyle>
<NormalStyle CssText="background-image:url('00100205');background-position-x:right;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;cursor:hand;padding-bottom:3px;padding-left:4px;padding-right:4px;padding-top:3px;"></NormalStyle>
</eo:ToolBarItem>
</ItemTemplates>
<Items>
<eo:ToolBarItem Type="Custom">
<CustomItem>
<asp:DropDownList Runat="server" AutoPostBack="False" ID="DropDownList1">
<asp:ListItem Value="- Insert Field -"></asp:ListItem>
<asp:ListItem Value="Option 1"></asp:ListItem>
<asp:ListItem Value="Option 2"></asp:ListItem>
<asp:ListItem Value="Option 3"></asp:ListItem>
</asp:DropDownList>
</CustomItem>
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="New" ImageUrl="00101022" ToolTip="New">
</eo:ToolBarItem>
<eo:ToolBarItem ImageUrl="00101003" Text="" ToolTip="Save" CommandName="Save">
</eo:ToolBarItem>
<eo:ToolBarItem Type="Separator">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="Copy" ImageUrl="00101007" ToolTip="Copy">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="Cut" ImageUrl="00101008" ToolTip="Cut">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="Paste" ImageUrl="00101009" ToolTip="Paste">
</eo:ToolBarItem>
<eo:ToolBarItem Type="Separator">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="Undo" ImageUrl="00101023" ToolTip="Undo">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="Redo" ImageUrl="00101024" ToolTip="Redo">
</eo:ToolBarItem>
<eo:ToolBarItem Type="Separator">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="Find" ImageUrl="00101032" ToolTip="Find">
</eo:ToolBarItem>
<eo:ToolBarItem Type="Separator">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="InsertOrEditImage" ImageUrl="00101033" ToolTip="Insert Image">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="InsertOrEditLink" ImageUrl="00101021" ToolTip="Insert Link">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="InsertOrEditAnchor" ImageUrl="00101025" ToolTip="Insert Anchor">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="RemoveLink" ImageUrl="00101026" ToolTip="Remove Link">
</eo:ToolBarItem>
<eo:ToolBarItem Type="Separator">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="InsertOrEditTable" ImageUrl="00101031" ToolTip="Insert Table">
</eo:ToolBarItem>
<eo:ToolBarItem Type="Separator">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="Indent" ImageUrl="00101027" ToolTip="Indent">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="Outdent" ImageUrl="00101028" ToolTip="Outdent">
</eo:ToolBarItem>
<eo:ToolBarItem Type="Separator">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="ForeColor" ImageUrl="00101029" ToolTip="Fore Color"
Type="DropDownMenu">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="BackColor" ImageUrl="00101030" ToolTip="Back Color"
Type="DropDownMenu">
</eo:ToolBarItem>
<eo:ToolBarItem Type="Separator">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="SpellCheck" ImageUrl="00101018" ToolTip="Spell Check">
</eo:ToolBarItem>
</Items>
<ItemTemplates>
<eo:ToolBarItem Type="Custom">
<NormalStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" />
<HoverStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" />
<DownStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" />
</eo:ToolBarItem>
<eo:ToolBarItem Type="DropDownMenu">
<NormalStyle CssText="background-image:url('00100205');background-position-x:right;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;cursor:hand;padding-bottom:3px;padding-left:4px;padding-right:4px;padding-top:3px;" />
<HoverStyle CssText="background-color:#ffe1ac;background-image:url('00100206');background-position-x:right;border-bottom-color:#335ea8;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#335ea8;border-left-style:solid;border-left-width:1px;border-right-color:#335ea8;border-right-style:solid;border-right-width:1px;border-top-color:#335ea8;border-top-style:solid;border-top-width:1px;cursor:hand;padding-bottom:2px;padding-left:3px;padding-right:3px;padding-top:2px;" />
<DownStyle CssText="BORDER-RIGHT: #335ea8 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #335ea8 1px solid; PADDING-LEFT: 4px; BACKGROUND-POSITION-X: right; BACKGROUND-IMAGE: url(00100206); PADDING-BOTTOM: 1px; BORDER-LEFT: #335ea8 1px solid; CURSOR: hand; PADDING-TOP: 3px; BORDER-BOTTOM: #335ea8 1px solid; BACKGROUND-COLOR: #ffe1ac" />
</eo:ToolBarItem>
</ItemTemplates>
<NormalStyle CssText="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; FONT-SIZE: 12px; PADDING-BOTTOM: 3px; CURSOR: hand; BORDER-TOP-STYLE: none; PADDING-TOP: 3px; FONT-FAMILY: Tahoma; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" />
<HoverStyle CssText="BORDER-RIGHT: #335ea8 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #335ea8 1px solid; PADDING-LEFT: 3px; FONT-SIZE: 12px; PADDING-BOTTOM: 2px; BORDER-LEFT: #335ea8 1px solid; CURSOR: hand; PADDING-TOP: 2px; BORDER-BOTTOM: #335ea8 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #ffe1ac" />
<DownStyle CssText="BORDER-RIGHT: #335ea8 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #335ea8 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 12px; PADDING-BOTTOM: 1px; BORDER-LEFT: #335ea8 1px solid; CURSOR: hand; PADDING-TOP: 3px; BORDER-BOTTOM: #335ea8 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #ffe1ac" />
</eo:ToolBar>
<eo:ToolBar ID="HeaderToolBar1" runat="server" BackgroundImage="00100203" BackgroundImageLeft="00100201"
BackgroundImageRight="00100202" SeparatorImage="00100204" Width="100%">
<Items>
<eo:ToolBarItem CommandName="Styles" ToolTip="Styles" Type="Custom">
<CustomItem>
<asp:DropDownList ID="StyleDropDown" runat="server" Style="width: 80px">
</asp:DropDownList>
</CustomItem>
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="Fonts" ToolTip="Fonts" Type="Custom">
<CustomItem>
<asp:DropDownList ID="FontDropDown" runat="server" Style="width: 110px">
</asp:DropDownList>
</CustomItem>
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="FontSizes" ToolTip="Font Sizes" Type="Custom">
<CustomItem>
<asp:DropDownList ID="FontSizeDropDown" runat="server" Style="width: 50px">
</asp:DropDownList>
</CustomItem>
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="Bold" ImageUrl="00101011" ToolTip="Bold">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="Italic" ImageUrl="00101012" ToolTip="Italic">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="Underline" ImageUrl="00101013" ToolTip="Underline">
</eo:ToolBarItem>
<eo:ToolBarItem Type="Separator">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="AlignLeft" ImageUrl="00101014" ToolTip="Align Left">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="AlignCenter" ImageUrl="00101015" ToolTip="Align Center">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="AlignRight" ImageUrl="00101016" ToolTip="Align Right">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="AlignJustify" ImageUrl="00101017" ToolTip="Align Justify">
</eo:ToolBarItem>
<eo:ToolBarItem Type="Separator">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="BulletList" ImageUrl="00101019" ToolTip="Bullet List">
</eo:ToolBarItem>
<eo:ToolBarItem CommandName="NumberedList" ImageUrl="00101020" ToolTip="Numbered List">
</eo:ToolBarItem>
</Items>
<ItemTemplates>
<eo:ToolBarItem Type="Custom">
<NormalStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" />
<HoverStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" />
<DownStyle CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" />
</eo:ToolBarItem>
<eo:ToolBarItem Type="DropDownMenu">
<NormalStyle CssText="background-image:url('00100205');background-position-x:right;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;cursor:hand;padding-bottom:3px;padding-left:4px;padding-right:4px;padding-top:3px;" />
<HoverStyle CssText="background-color:#ffe1ac;background-image:url('00100206');background-position-x:right;border-bottom-color:#335ea8;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#335ea8;border-left-style:solid;border-left-width:1px;border-right-color:#335ea8;border-right-style:solid;border-right-width:1px;border-top-color:#335ea8;border-top-style:solid;border-top-width:1px;cursor:hand;padding-bottom:2px;padding-left:3px;padding-right:3px;padding-top:2px;" />
<DownStyle CssText="BORDER-RIGHT: #335ea8 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #335ea8 1px solid; PADDING-LEFT: 4px; BACKGROUND-POSITION-X: right; BACKGROUND-IMAGE: url(00100206); PADDING-BOTTOM: 1px; BORDER-LEFT: #335ea8 1px solid; CURSOR: hand; PADDING-TOP: 3px; BORDER-BOTTOM: #335ea8 1px solid; BACKGROUND-COLOR: #ffe1ac" />
</eo:ToolBarItem>
</ItemTemplates>
<NormalStyle CssText="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; FONT-SIZE: 12px; PADDING-BOTTOM: 3px; CURSOR: hand; BORDER-TOP-STYLE: none; PADDING-TOP: 3px; FONT-FAMILY: Tahoma; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" />
<HoverStyle CssText="BORDER-RIGHT: #335ea8 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #335ea8 1px solid; PADDING-LEFT: 3px; FONT-SIZE: 12px; PADDING-BOTTOM: 2px; BORDER-LEFT: #335ea8 1px solid; CURSOR: hand; PADDING-TOP: 2px; BORDER-BOTTOM: #335ea8 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #ffe1ac" />
<DownStyle CssText="BORDER-RIGHT: #335ea8 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #335ea8 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 12px; PADDING-BOTTOM: 1px; BORDER-LEFT: #335ea8 1px solid; CURSOR: hand; PADDING-TOP: 3px; BORDER-BOTTOM: #335ea8 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #ffe1ac" />
</eo:ToolBar>
</CustomHeaderTemplate>
</eo:Editor>
</div>
</form>
</body>
</html>
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
This is to let you know that we are still working on this issue.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 7/30/2009 Posts: 4
|
Thanks! I really appreciate your help with this issue. An additinal question. In the code I sent the second time I added a drop dow box in a couple of places in the Editor's tool bar but when I run the page the two dropdown menues are disabled. Is this caused because I haven't installed the license on my computer yet?
Thanks again, hope to hear from you soon!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You must set the CommandName property for the toolbar item. Otherwise it will be disabled.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 7/30/2009 Posts: 4
|
Thanks!! Your last post actually solved both problems. Once the dropdown in the toolbar was active then the insertHTML worked fine. What I believe is going on: Once the Editor lost focus (when selecting the option from the external drop down) all the inserted text goes at the end of the document, the cursor position is lost. I think this might be a bug because this limits the use of any external controls.
But I don't need to use external controls in this page : ) so my problem was solved for now!
Thanks again
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Jorge,
Great work! That is precisely what happened. The Editor does take care of everything on the ToolBar correctly because it knows that they are a part of the Editor. For external controls the Editor can't do anything because it doesn't know they actually work with the Editor. So yes as soon as you place the controls inside the toolbar everything should work for you.
Thanks!
|
|