Jan 26, 2010, 5:37 AM
Html Editor Help.
Hi,
I have been using Coolite tools for couple of months but i never used the html editor. I want to use it for a message form.
I put the editor inside a Panel like in the Examples. After click an ajaxbutton to send the messsage form, not getting the "content" in the html editor. How can i get the content?
please help.
Here where the editor is
I have been using Coolite tools for couple of months but i never used the html editor. I want to use it for a message form.
I put the editor inside a Panel like in the Examples. After click an ajaxbutton to send the messsage form, not getting the "content" in the html editor. How can i get the content?
please help.
Here where the editor is
<ext:Panel ID="Panel1" runat="server" Width="700" Height="300" Html="Içerik" BodyStyle="padding:6px;"
Title="Editor panel" Border="true" AutoScroll="true">
<TopBar>
<ext:Toolbar ID="Toolbar1" runat="server">
<Items>
<ext:ToolbarButton ID="Button1" runat="server" Text="Düzenle" Icon="Pencil">
<Listeners>
<Click Handler="el.setDisabled(true);#{Button2}.setDisabled(false);#{PanelEditor}.startEdit(#{Panel1}.getBody());" />
</Listeners>
</ext:ToolbarButton>
<ext:ToolbarButton ID="Button2" runat="server" Text="Kaydet" Icon="Disk" Disabled="true">
<Listeners>
<Click Handler="el.setDisabled(true);#{Button1}.setDisabled(false);#{PanelEditor}.completeEdit();" />
</Listeners>
</ext:ToolbarButton>
</Items>
</ext:Toolbar>
</TopBar>
</ext:Panel>
<br />
<ext:Editor ID="PanelEditor" runat="server" AutoSize="Fit" Shadow="None">
<Field>
<ext:HtmlEditor ID="HtmlEditor1" runat="server" />
</Field>
</ext:Editor>
here where it get called protected void SendInfo(object sender, AjaxEventArgs e)
{
string content = HtmlEditor1.Value.ToString();//return " "
}