ComponentOne WebEditor for ASP.NET: ComponentOne WebEditor for ASP.NET Overview > Revision History > What's New in 2009 v3

What's New in 2009 v3

The following enhancements were made to ComponentOne WebEditor for ASP.NET in the 2009 v1 release of the ComponentOne Studios.

New Feature

Added a new button, Cleanup HTML, to the Common toolbar. 

 

 

When clicked, this button opens the Cleanup Source HTML Editor dialog box, which you can use to strip a document of its Microsoft Word tags. 

To learn how to use the Cleanup Source HTML Editor dialog box, see the Cleaning Up Source HTML Documents topic.

New Class Member

The following class members have been added to WebEditor for ASP.NET:

 

Member

Description

FocusOnLoad

Gets or sets value whether determining whether or not the editor will be focused on first time load.

New Client-Side Event

The following client-side event has been added to WebEditor for ASP.NET:

 

Member

Description

ShortcutKeyDown

Occurs when shortcut key is pressed down. This event only occurs only when WYSIWYG editor is active and focused.

C# Sample

<script language="javascript" type="text/javascript">

Sys.Application.add_load(function() {

    var editor = Sys.Application.findComponent("<%=C1WebEditor1.ClientID%>");

editor.add_shortcutKeyDown(onC1WebEditor1ShortCutKeyDown);

});

function onC1WebEditor1ShortCutKeyDown(eventArgs) {

      var key = eventArgs.get_key(); // always in lower case

      if(key == "h") { //Open "CleanupHtml" dialog on ctrl + h

      eventArgs.set_cancel(true); // cancel event       

eventArgs.get_editor().executeCustomCommand("CleanupHtml");;

// get target editor and execute custom command

      }

    }

</script>

New Help Topics

The following task-based help topics have been added to the WebEditor for ASP.NET documentation:

 

Topic

Description

Cleaning Up Source HTML Documents

In this topic, you will learn how to use the new Cleanup Source HTML Editor dialog box.

Customizing the Font Drop-Down List

In this topic, you will learn how to add and remove font types from the C1WebEditor's  Font drop-down list.

Adding and Removing Toolbars Programmatically

In this topic, you will learn how to add and remove toolbars dynamically.


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.
￿