AJAX :: Get Selected Text From HtmlEditor?
Feb 28, 2011I'm using HtmlEditor, could i get text which i selected in the HtmlEditor ? Does anyone have any good suggestions as to how to do this?
View 3 RepliesI'm using HtmlEditor, could i get text which i selected in the HtmlEditor ? Does anyone have any good suggestions as to how to do this?
View 3 RepliesThe first step to reproduce the behaviour is pasting a specifc text from a PDF document into the HTMLEditor:
After that, select the text:
And then, click the Justify button. The selected text simply disappears:
The HTML code generated by the content:
The same happens for other texts like (also pasted from the same PDF):
The correspondig HTML markup generated by the HTMLEditor:
It seems like HTMLEditor has problems with some characters like " or subscripts. If the same texts are pasted into Word and then copied into the HTMLEditor, it works ok and the text is justified correctly.
I am having the issue where I want people to paste plain text and not any word formatting.
Obout_theo gave the code below, which made the normal ctrl + V paste in plain text the whole time. Which is perfect for my need.
BUT, most users use paste from the context menu and this pastes in word format. Does anyone know the answer to this problem?
[Code]....
Can i get the selected index,selected value , selected text using javascript of ajax combobox control. if yes send me the sample code.
View 7 RepliesI am having an issue with the HTML editor when using the context menu to paste content from word. Basically I want to paste the content as plain text which i have been able to do when using the Ctrl +V key by using the captureInDesign method, but unable to do this when selecting paste from the context menu. Is this possible using the AJAX control kit 3.0.30930?
View 2 RepliesI am doing asp.net project using C#.I want to display the contents that are being typed in HtmlEditor control onto a A4 size as preview and i also want to save this content to a file(.doc or .txt).
How do i do it??
I have a .net 3.5 web form with an ajax combo box and a text box inside it. The bombo box is bound to a SqlDataSource.
My requirement is to show/hide the text box depending on the text of the selected item in the combo box. If a particular string, say 'xyz', appears in the text of the selected item, the I will make the text box invisible. I enabled the AutoPostback, made the text box disappear in the SelectedIndexChanged event, and everything worked fine.
However, when users enter their own texts (which are not in the list items), I am unable to show / hide the text box. I've tried the TextChanged event but nothing happens. It seems the event is not trigger after I enter a new text and locate the focus to other place.
is there a way to prevent the user ented text from being inserted into the bombo box?
I am using Editor in asp.net application.
View 3 RepliesIs there a way to programmatically select the entire string of the selected item in the AJAX Combobox?What I'm trying to do is bascially on a State/City selection.
1. User selects a State from the first combobox. This triggers the City combobox to be populated. The item(0) is "Select One:".
2. I want the entire "Select One:" to be hightlight as if the user had used their mouse and highlighted all the text.
The reason for this that I'd like the user to be able to start typing the city without needing to clear out the "Select One:" manually.
The Calendar shows up when you click in the text box. And when it shows up it has no background. It is just letters and numbers, you click a number and that one appears in the textbox. I cannot use ToolkitScriptManager because the AjaxControlToolKit.ddl I have is old, I am afraid to download the newer version because this is for work and they told me to use that specific one. here is my code:
[Code]....
I have TabContainer, every tab has asp:lable(inside header). I want that when I select a tab, the color of text(not tab background) would be change to white.I've already read this article but it does not help in my case. also found that .ajax__tab_active .ajax__tab_tab should be involved, but I can't find the property that can change the color.
View 4 RepliesI have an AJAX Calendar Extender inside an ASP.NET Repeater, which binds date data from a table and allows users to change this. I have an issue however - if the date is null, it returns an error as it cannot bind null as a selected date. Are there any ways around this?
View 1 RepliesI'm using AJAX Control Toolkit HTMLEditor.
I have a sample Microsoft Word document which has several paragraphs.
When I click the button "Paste from MS Word (with cleanup)" on the Editor, <br/> is inserted as the HTML instead of <p></p> i.e. HTML paragraphs.
I would like the MS Word paragraphs to retain their meaning and have a <p> instead of <br />.
(By the way, they are kept if I do a standard Paste, but then a lot of other obscure characters are inserted into the HTML)
I just downlaoded the Apr. 12, 2010 released version and I did not see the HTMLEditor? Where and how do I get that?
View 16 RepliesI'm looking into using the HTMLEditor from the toolkit. I know its open source which isn't the problem. The problem is that I don't want to have my program to be open source but would like to use the editor. The source code I'd like to be paid for where the compiled version (the dlls and aspx pages) will be free to download. Is it possible to do that?
View 1 RepliesI have a master page, aspx page, user control
I use HTMLEditor in the user control like this:
<HTMLEditor:Editor runat="server" ID="Editor" Height="300px" AutoFocus="true" Width="100%" />
in the code behind file
i use ((AjaxToolkitHtmlEditor.Editor)SettingsFormView.FindControl("Editor1")).Content. I got NULLReference Exception.
Also i use Editor editor = Page.FindControl("Editor") as Editor; still get null
my user control code is below:
<table width="100%"; style=" word-break:break-all">
<tr>
<td style="height:auto">
<HTMLEditor:Editor runat="server" ID="Editor" Height="300px" AutoFocus="true" Width="100%" />
<br />
<asp:ImageButton ID="add" runat="server" onclick="add_Click" ImageUrl="~/images/OK.gif" />
</td>
</tr>
</table>
I am using the Html Editor Ajax Control Toolkit for. Net 3.5 and I need as a va text being typed and reach the lateral borders of the editor for him to play next line and do not let avontade type and add a scroll horizoltal.In short without horizontal scroll
View 4 RepliesI know this issue has been up here before, but I could not find any answer for it.Is there anyway to add a custom button / control (dropdown or whatever) for H1, H2 tags to use with the HTMLEditor.Where can I add such funtionality? Is it possible to use some custom overriding i a separate .cs class.Please provide some example how to do this.
View 2 RepliesI have a databound asp.net ajax HTMLEditor. I think I must be misunderstanding the page events but basically:
The editor is databound on page_load (works fine).
I edit the contents of the control a bit.
I press my asp:button to retrieve the new content, but the content has not changed.
So:
[Code]....
Does not reflect my new value, but just gives me the old value from when the page loaded.
I have a few issues with the HTMLEditor control.
First, if I type an e-mail address into the HTMLEditor control, it automatically reformats the e-mail address into a link (underlined w/ blue font). How can I disable this feature?
Second, is there a way to prevent pasting into the HTMLEditor? I successfully got Internet Explorer to throw errors when I copied & pasted the entire page, HTMLEditor and all, into the HTMLEditor control. Since the page already contained a PageRequestManager, the data I pasted into HTMLEditor contained its own code for a PageRequestManager. As a result, unsurprisingly, I got the following IE error:
Error: Sys.InvalidOperationException: The PageRequestManager cannot be initialized more than once.
Is there a way for me to prevent these strange situations from occurring?
I need to add image tag to AjaxControlToolkit.HTMLEditor???
View 4 RepliesI've been having some real trouble with the HTMLEditor.Essentially, I would like the editor to display an entry of a SQL database, so that the user can edit the entry and update the entry.So, here is the aspx snippet:
[Code]....
This works great. The problem comes when I want to update the entry back to the database. When I press my asp:button, I use this to find out what my new value is
I tried to use the Paste from Ms word button in the tool bar of htmlEditor to paste text. The htmleditor to manage to clean up the MS tags in the html markup. However, it also removes all the font sizes, setting them all to be a default font size.
View 1 Replies1. What is the HTML version of the HTML string returned by HTMLEditor control?
2. I am passing the HTML string returned by this control to SSRS 2008 reports. But since SSRS understands only basic HTML (old <u> tags for underline), SSRS can't display underlined text. Is there any way to tell HTML string returned by HTML Editor to return basic (old) HTML format string. Specifically for underline <u> tags instead of <span text-decoration: underline>?
3. The custom Editor control using App_Code is not working for Web application project in VS 2010? What is the way to customize this HTMLEditor toolbar to display selected operations like e.g. only BOLD and UNDERLINE.
I've got a aspx page with 2 update panels. The first has a HTMLEditor (ajax control toolkit), and the second had a textfield and a butten. after i push the button (of course there is some action but no focus things) afther the action is done the focus gets to the HTMLeditor.Why ? There is no page reload (because of the updatepanel) so why get the htmleditor the focus?
View 1 Replies