Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Unassigned: HtmlEditorExtender indent and outdent button clicks NOT working. [27645]

$
0
0
<asp:TextBox Width="100%" ID="someText" runat="server" TextMode="MultiLine" Rows="25" Columns="100" Text=""></asp:TextBox>

<ajaxToolkit:HtmlEditorExtender
ID="someTextExtender"
TargetControlID="someText"
DisplaySourceTab="false"
runat="server">
<Toolbar>
<ajaxToolkit:Undo />
<ajaxToolkit:Redo />
<ajaxToolkit:Bold />
<ajaxToolkit:Italic />
<ajaxToolkit:Underline />
<ajaxToolkit:StrikeThrough />
<ajaxToolkit:Subscript />
<ajaxToolkit:Superscript />
<ajaxToolkit:JustifyLeft />
<ajaxToolkit:JustifyCenter />
<ajaxToolkit:JustifyRight />
<ajaxToolkit:JustifyFull />
<ajaxToolkit:InsertOrderedList />
<ajaxToolkit:InsertUnorderedList />
<ajaxToolkit:CreateLink />
<ajaxToolkit:UnLink />
<ajaxToolkit:RemoveFormat />
<ajaxToolkit:SelectAll />
<ajaxToolkit:UnSelect />
<ajaxToolkit:Delete />
<ajaxToolkit:Cut />
<ajaxToolkit:Copy />
<ajaxToolkit:Paste />
<ajaxToolkit:BackgroundColorSelector />
<ajaxToolkit:ForeColorSelector />
<ajaxToolkit:FontNameSelector />
<ajaxToolkit:FontSizeSelector />
<ajaxToolkit:Indent />
<ajaxToolkit:Outdent />
<ajaxToolkit:InsertHorizontalRule />
<ajaxToolkit:HorizontalSeparator />
<ajaxToolkit:InsertImage />
</Toolbar>
</ajaxToolkit:HtmlEditorExtender>


htmlText = "<div><p style="margin-left:.5in"><b>Text</b> </p>
<p style="margin-left:.5in"><b>bold</b> Text<p>
<p style="margin-left:.8in"><b>Name:</b> FirstName + LastName</p>
<p style="margin-left:.8in"><b>Email:</b> Email</p></div>"

HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(htmlText);
HtmlNode bodyNode = doc.DocumentNode.SelectSingleNode("//body");
someText.Text = HttpUtility.HtmlDecode(bodyNode.InnerHtml);

margin-left:.5in is used for indenting purposes which is NOT working when I use the above code. I tried to use Indent and Outdent buttons on the HtmlEditorExtender control, they are NOT greyed out but when clicked NOTHING happens.

Any help greatly appreciated.

Comments: When modify the text in HtmlEditorExtender control, HREF values appended with the Current URL + href value. Example as follows, ____This is <a href="#value1#">Link</a> for HtmlEditorExtender control__ becomes as follows __This is <a href="http://www.mydomain.com/app1/mypage #value1#">Link</a> for HtmlEditorExtender control__

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>