This project is read-only.


Confused re HTMLEditor


Does the 15.1 release contain the HTMLEditor or not?

On the devexpress page I can only see HTMLEditorExtender
on the old page
it does appear.

I cant see the HTMLEditor in my Visual Studio toolbox, only the HTMLEditorExtender

If I try to manually edit the page where the HtmlEditor is used, it doesn't like it.
Closed Mar 10, 2016 at 5:26 PM by MikhailTymchukDX


MikhailTymchukDX wrote Mar 9, 2016 at 11:35 AM

We maintain backward compatibility for HtmlEditor, but HtmlEditorExtender is a preferable choice between these two HTML editors.
Please follow section 5 of the Upgrade your project to AjaxControlToolkit v15.1 guide to get to know how to upgrade HTMLEditor to v15.1.

Vernley wrote Mar 9, 2016 at 12:07 PM

Yes I saw that, It says:
Html Editor extender
The following namespaces have been renamed so please update your code accordingly:
Change AjaxControlToolkit.HTMLEditor to AjaxControlToolkit.HtmlEditor.

In our existing page, we had
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
TagPrefix="cc1" %>
            <cc1:Editor ID="ajWebEd" runat="server" />
however I got compiler errors, and as I said the HTMLEditor does not appear on the Visual Studio toolbar.

Suggest you edit section 5 to make it clearer.

The EditorExtender seems to work fine, BTW, but obviously I need to use the Text property of the Textbox rather than the content property of the old control.

MikhailTymchukDX wrote Mar 9, 2016 at 12:28 PM

You need to update the Register directive as follows:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HtmlEditor" TagPrefix="cc1" %>
TagPrefix will stay the same.

Vernley wrote Mar 9, 2016 at 1:05 PM

Yes I understand that, I did so, but the designer complained (page,designer.cs) so I edited that as well, but it kept reverting to a generic web control.

I was just pointing out that the section 5 title says Html Editor Extender but then mentions HtmlEditor, which is not available as a control to drag from the toolbox.

In searching for a solution I found the two urls above (sorry for cut & paste error)

and various people online telling us how to use HtmlEditor, not the extender.

(Thanks for taking the toolkit on BTW - not all of us can afford the Telerik suite or the full DevExpress suite)

MikhailTymchukDX wrote Mar 9, 2016 at 1:25 PM

AjaxControlToolkit.HtmlEditor should not revert to the generic web control.
Would you please provide a sample project that illustrates this issue?

Vernley wrote Mar 9, 2016 at 2:31 PM

I've already modified the code to use the extender attached to a textbox, it seems fine, a slightly different UI, but it does the job.

I'll try and repro the bug when I have time.

Thanks for the speedy response.

MikhailTymchukDX wrote Mar 10, 2016 at 5:26 PM

AJAX Control Toolkit was moved to GitHub:
Please file a new issue here including the link to this CodePlex issue when you reproduce the bug.