Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search


AJAX :: How To Insert An Image By Using HTMLEditor

I want to be able to insert an image by using HTMLEditor. Like we can insert a clickable link. I looked
some posts but none of them shows a way to do this. I am using AjaxControlToolkit 3.0.30930.0.

Not a button which will give me an option to insert some icon.

Lets say, I have a folder called IMAGESin my application. Inside that folder an image file name addme.jpg. How can I add this into html editor and save into database with its html equivalent ?

I hope I explained well enough what I have been trying to accomplish ?

View 4 Replies (Posted: Dec 29, 2009 12:22 PM)

Sponsored Links:

Related Forum Messages For ASP.NET category:
AJAX :: Insert Text In HTMLEditor?
I want to use the AjaxControlToolkit Editor to design a templated web page.

For example I want to insert code "[name]" when I click on a button.

I tried to do it in javascript but I can't figure out how to achieve this.

Posted: Nov 25, 2009 09:53 AM

View 6 Replies!   View Related
AJAX :: Add Image Tag To AjaxControlToolkit.HTMLEditor
I need to add image tag to AjaxControlToolkit.HTMLEditor???

Posted: Mar 23, 2010 08:28 PM

View 4 Replies!   View Related
AJAX :: HTMLeditor In ModalPopup - 'Insert/Edit URL Link' Box Is Wildly Offset?
I have placed an AJAX Control Toolkit (version 3.0.30512.1) HTMLEditor inside a ModalPopup. Everything works fine except when you click the 'Insert/Edit URL Link' button. The resulting 'add a link' popup moves to the extreme bottom right of the ModalPopup - and drastically shifts the HTML Editor. This happens in Firefox, IE8 and Chrome so far. A screenshot to illustrate this is shown at the bottom of this message.

Secondly, as you can also see on this screenshot, there is a lot of white space below the HTML Editor before the Horizontal Rule - there are no other HTML tags between the HTML Editor and the Horizontal Rule. This space only 'closes up' if I increase the height of the HTML Editor - it does not reduce automatically.

Posted: Jan 13, 2010 02:18 PM

View 4 Replies!   View Related
AJAX :: HTMLEditor Description Image Path?
How do you deal with images in the HTML Editor from the Ajax Toolkit? I didn't find a way to define the image directory or something to set a relative default path.

Since the Editor is normally in a different subdirectory than the content pages will be displayed afterwards.

Also, there is no option to include images somehow, no?

Posted: May 14, 2010 01:33 PM

View 2 Replies!   View Related
AJAX :: How To Create Insert Image Button For Html Editor
how i can create insert image button for my html editor?

Posted: May 11, 2010 09:46 AM

View 2 Replies!   View Related
AJAX :: AJAX Control Toolkit HTMLEditor - Paste From MS Word (with Cleanup)
I'm using AJAX Control Toolkit HTMLEditor.

I have a sample Microsoft Word document which has severalparagraphs.

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)

Posted: Dec 03, 2010 06:09 AM

View 2 Replies!   View Related
AJAX :: Where Is HTMLEditor
I just downlaoded the Apr. 12, 2010 released version and I did not see the HTMLEditor? Where and how do I get that?

Posted: Oct 29, 2010 06:31 PM

View 16 Replies!   View Related
Forms Data Controls :: Insert A Snippet To Change A Hyper Link 'insert' To A Button Image?
How do I insert a snippet to change a hyper link ' insert' to a buttonimage?

Here is the front page code:


Posted: Nov 21, 2010 10:38 PM

View 4 Replies!   View Related
AJAX :: Ajax HTMLEditor Cannot Save Text In DB?
I'm trying to use the Ajax HTMLEditor ( see markup below) as a user control with a Save image button on the user control to save content text to a database after clicking the button. However, after changing text in the editor I cannot get it as it's assigning the old initially loaded text to a string variable.I tried to use label and literal control to assign text from the Ajax Editor but no success.

On the user control Load even I'm loading the database text that is working fine:

Public Partial Class ucTextArea
Inherits System.Web.UI.UserControl
Public Event SaveText As EventHandler
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load.......

Posted: Dec 22, 2009 05:20 PM

View 4 Replies!   View Related
AJAX :: Using The HTMLEditor From The Toolkit?
I'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?

Posted: Aug 22, 2010 08:35 PM

View 1 Replies!   View Related
AJAX :: HTMLEditor Does Not Work?
I 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">
<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" />

Posted: May 04, 2010 03:24 PM

View 1 Replies!   View Related
AJAX :: Getting Text From HtmlEditor.
I am using HtmlEditor from can I get the text that I type in the editor into a label.I want to click on a button and show the message in label using jquery.

Posted: Dec 28, 2009 05:19 PM

View 1 Replies!   View Related
AJAX :: HtmlEditor - No Scroll?
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

Posted: Jan 02, 2010 03:55 PM

View 4 Replies!   View Related
AJAX :: ControlToolkit.HTMLEditor?
I 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.

Posted: Apr 03, 2010 04:36 PM

View 2 Replies!   View Related
AJAX :: HTMLEditor Cannot Retrieve Value?
I have a databound asp.netajax 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.



Does not reflect my new value, but just gives me the old value from when the page loaded.

Posted: Aug 02, 2010 04:09 PM

View 2 Replies!   View Related
AJAX :: Pasting Into HTMLEditor Control?
I have a fewissues with the HTMLEditor control.

First, if I type an e-mail address into theHTMLEditorcontrol, 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?

Posted: Jan 19, 2010 09:09 PM

View 4 Replies!   View Related
AJAX :: Get Selected Text From HtmlEditor?
I'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?

Posted: Feb 28, 2011 07:03 AM

View 3 Replies!   View Related
AJAX :: HTMLEditor Content Unchanged?
I'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:


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

Posted: May 05, 2010 09:42 PM

View 2 Replies!   View Related
AJAX :: HtmlEditor Paste Word
HtmlEditor - Great but:Is there any way to stop users doing Ctrl-C from Word then Ctrl-V into Editor

If they use the "Paste from Word" all OK, but direct paste brings in all those irritating MS Tags which the editor isnt able to remove.

eg:<p style="background: white; margin: 0cm 0cm 2.25pt -6pt">

Editor doesnot/cannot remove this background-color

Posted: Nov 12, 2009 02:20 PM

View 5 Replies!   View Related
AJAX :: HTMLEditor: Paste From MS Word
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.

Posted: May 04, 2010 10:25 AM

View 1 Replies!   View Related
AJAX :: How To Stop The Width In HTMLEditor
If i just keep writing without making any "Space" it just keeps going on, out of the box, skipping the width I set. I want it to stop at the width and go to the next line.

Posted: Nov 02, 2009 06:29 PM

View 2 Replies!   View Related
Way To Optimize New HTMLEditor Of The Ajax Toolkit
I amuisng the new HTMLEditor of the Ajax Toolkit but it isvery very slow.Is there a way tooptomize this? If not is there any other HTML Editor I can use? I tried FCKeditorbut that is too heavy as well.

Posted: Aug 01, 2009 05:41 PM

View 5 Replies!   View Related
AJAX :: 3.5 Toolkit HTMLEditor Customization
1. 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.

Posted: Feb 20, 2011 02:52 AM

View 1 Replies!   View Related
AJAX :: After A Void The HTMLEditor Gets The Focus?
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?

Posted: Aug 29, 2010 01:19 PM

View 1 Replies!   View Related
AJAX :: HTMLEditor & Cookieless Authentication?
I put an HTMLEditor Control (aka Editor) into a webpage and set the forms authentication to cookielessLike so

<authentication mode="Forms">

Posted: Jun 22, 2010 10:02 PM

View 2 Replies!   View Related
AJAX :: HTMLEditor With File Upload?
I notice that the HTMLEditor in the AJAX Toolkit does not come with an option to upload afile(for example a word document) that can be linked for the user to click and download. I tried using obout suite butit is only a trial version and it is currently not feasible for usto purchase a licence from them.

Is there any free HTML Editorthat I can integrate with ASP that is available with adocument upload option?

Posted: Jun 21, 2010 11:09 PM

View 2 Replies!   View Related
AJAX :: HTMLEditor Height / Looking Different In Different Browser?
I am setting HTMLEditor height to 150px. But it look different in different browser. In IE and Crome it is showing me almost same but in Firefox the height becomes to large.

Posted: Feb 17, 2011 06:10 AM

View 3 Replies!   View Related
AJAX :: ControlToolkit.HTMLEditor Adding H1,H2,H3?
I like to usethe ajaxcontroltoolkit, but i'm missing theH1,H2,H3 possibilities.How can i add it to the editor?With a override class i can add some buttons, but how can i add the posibility to set <h1></h1> on the selected text?And what if i change the H1 to H3... I'll got stuck in this, i know how to add a button andjavascript to it, but don't know how to add the H1 to it.Also would a dropdownbox be better i thinkCoding to add a button:


Posted: Aug 24, 2010 02:49 PM

View 9 Replies!   View Related
AJAX :: ControlToolkit.HTMLEditor Maxlength?
Is it possible for me to set MaxLength for AjaxControlToolkit.HTMLEditor?Or is there a workaround if this control don't have maxLength property

Posted: Jan 22, 2010 09:20 AM

View 1 Replies!   View Related
AJAX :: Add KeyPress Event For HtmlEditor?
I have one AjaxHtmlEditor in my page i want to add keypress Event for editor for that i have done-In Source file


In cs file



Posted: Jun 24, 2010 06:07 AM

View 2 Replies!   View Related
AJAX :: Cache HTMLEditor Between Pages?
I'm using the HTMLEditor as per the Ajax Control Toolkit but it can take upto 4 seconds to load. Obviously once loaded, I'm guessing its somehow cached or stored in viewstate as next time round (as long as its a postback) it appears much quicker.

My question is when a postback did not occur, rather a visit to a different page in the site obviously causes the HTMLEditor to fully reload again, after a while these 4 seconds add up, and I'm worried the effect on user experience.

Is there a way I can [force] the browser to cache the control between pages, so that the user only see it load once (first time).

Posted: Jan 07, 2010 11:15 AM

View 1 Replies!   View Related
AJAX :: Htmleditor Breaks Some Characters?
to fix the following "feature" of Htmleditor:1. Go to Htmleditor demo
2. Type "æøåąčęėįšųūžвьпаджфк" or something more or less weird there
3. Press Submit buttonResult: First free letters (danish) are replaced with question marks, all other letters (lithuanian and russian) remains as they should.What's wrong with danish letters and can it be fixed without replacing such letters with html escape sequences?

Posted: May 19, 2010 09:10 AM

View 2 Replies!   View Related
AJAX :: Save HTMLEditor Contents As Rtf?
I'm using the Ajax Toolkit Editor control on my page,and need to save the contents to an rtf file. I found a similar post, but I'm having trouble with the following method:

Protected Sub cmdSave_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Buffer = True
Response.AddHeader("content-disposition", "attachment;filename=myfile.rtf")
Response.ContentType = "application/rtf"


This produces a file with the .rtf extension, but it merely contains plaintext and html tags. Is it possible to save the contents of the Ajax Editor control as a truertf?

Posted: Aug 04, 2010 09:15 PM

View 3 Replies!   View Related
AJAX :: Binding HTMLEditor To AccessDataSource?
I am trying to bind the html editor's content property to a column from my access data source object. When the page renders, I just get a blank screen. I made sure that the editor was working by using just text rather than binding. When I use the text, it displays fine.

Here is my code:


Posted: Nov 17, 2009 01:08 PM

View 2 Replies!   View Related
AJAX :: HTMLEditor Control - Unable To See Content
I'm attempting to add an Editor control to my site. However, my problem is that all I'm seeing when I view it are the toolbars; I can't see content in between the upper and lower toolbar. Having an Editor isn't very useful when I have no content to edit! Here's some code I'm using to test it; what am I missing?


Posted: May 21, 2010 09:25 PM

View 1 Replies!   View Related
AJAX :: Adding Spell Check In HtmlEditor?
I have drag a HtmlEditor control from AJAX tool kit 3.5.

how to add spell check functionality to that HTML Editor control?

Posted: Dec 01, 2009 09:53 AM

View 4 Replies!   View Related
AJAX :: Loading HTML In HTMLEditor Content?
I have a website where I'm trying to use an HTMLEditor to allow users to alter the body of email text. The text is stored in a database and looks like this:


I load the current email body into the Content property of a new HTMLEditor.Editor object. When it loads the HTML, though, it looks like it does above; it doesn't "process" it. Can the Editor process the HTML?

Also, when I do edit HTML in the object and submit, the Editor's Content includes "<" instead of "<", etc. Do I have to manually deal with that?

Posted: Mar 22, 2010 05:48 PM

View 5 Replies!   View Related
AJAX :: Htmleditor Color Picker Positioning?
I have an HTMLEditor inside a modal popup. When the colour picker is selected it appears outside of the popu, nowhere near the editor.

Posted: Dec 04, 2009 10:27 AM

View 5 Replies!   View Related
AJAX :: HTMLeditor, Always Paste With Word Clean Up On?
I haven't been able to find a post about this, but the HTMLEditor is finally a rich text editor that properly removes word formatting without messaging up other stuff (thank god!). However, because I know my users, I would like for this 'paste as word' mode to be always on whenever they paste, how can I accomplish this?

Posted: Oct 11, 2010 08:23 PM

View 2 Replies!   View Related
Copyright 2005-08, All rights reserved