AJAX :: Remove Button From HtmlEditor TopToolbar?
Feb 23, 2010I want to remove button from Ajax HtmlEditor TopToolbar, is possible ?
For example : remove button FontName and FontSize from editor.
I want to remove button from Ajax HtmlEditor TopToolbar, is possible ?
For example : remove button FontName and FontSize from editor.
What is the correct code to append text to the END of the content inside the HTMLEditor in design mode with a button click?In this case,there will be no cursor position set,hence the value will be 0, and the text is inserted at the beginning of the html within the HTMLEditor.This is what I am using to insert the text where the cursor is:
[Code]....
I have been trying to create a custom Styles select button for the HTMLEditor control based on the examples given in the CustomButtonsAndPopups.cs and CustomEditor.cs files. I have had some success: The select button is displayed and the functionality of selecting a style (eg. H1, H2, P etc) and changing the style of selected text works but there are two problems that make it different from the Font Name select button: There is no label next to the button and there is no default text:
The style button is on the left. The Font Name select button is on the right
how to add the label and the default option?
Here is my version of the CustomButtonsAndPopups.cs file:
using System;
How should I go about removing dynamic control.I have a method that does the removing currently, however, it doesn't remove when postback..Here's my code
HTML
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="DynamicTools.Main" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
[code]....
how do I write a code for the remove button I want to remove the row where the remove button is clicked. he code for my webform is below
html code for remove
<td>
<asp:LinkButton runat="server" ID="lnkbtnRemove" Text="Remove" OnClick="lnkRemoveGuest_Click" ></asp:LinkButton>
[Code]....
I'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'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 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 RepliesI put an HTMLEditor Control (aka Editor) into a webpage and set the forms authentication to cookielessLike so
<authentication mode="Forms">
I notice that the HTMLEditor in the AJAX Toolkit does not come with an option to upload a file (for example a word document) that can be linked for the user to click and download. I tried using obout suite but it is only a trial version and it is currently not feasible for us to purchase a licence from them.
Is there any free HTML Editor that I can integrate with ASP that is available with a document upload option?
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.
View 3 RepliesI like to use the ajaxcontroltoolkit, but i'm missing the H1,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 and javascript 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:
[Code]....
Is it possible for me to set MaxLength for AjaxControlToolkit.HTMLEditor?Or is there a workaround if this control don't have maxLength property
View 1 RepliesI have one AjaxHtmlEditor in my page i want to add keypress Event for editor for that i have done-In Source file
[Code]....
In cs file
[Code]....
[Code]....