Search

Search:

Namespace:

Search Result
.

This page was automatically generated when this topic (Custom Toolbar Items) was renamed to Custom_Toolbar_Items on 11/7/2004 at 7:06 AM by -127.0.0.1.

.

ToolbarButtons and ToolbarDropDownLists can be added to a FreeTextBox either programmatically, procedurally, or by inheriting from ToolbarButton or ToolbarDropDownList.

.

Procedurally Creating a ToolbarButton

.

To define a custom ToolbarButtons, you must set the Title and ButtonImage properties as well as the ScriptBlock property. To access the FreeTextBox in which the button resides, use the syntax "this.ftb.MethodName"

.
  • Do not add <script> tags around your JavaScript functions. The code in ScriptBlock is automtaically inserted in a JavaScript function block
.
  • In the examples 'this' refers to the FTB_Button JavaScript object, 'this.ftb' refers to the button's parent FTB_FreeTextBox object. By using 'this.ftb' you can access all the FTB_FreeTextBox methods, some of which are listed at MajorFreeTextBoxJavaScriptFunctions.
.

Inside your Page_Load function, you can add ToolbarButtons to a FreeTextBox control's Toolbars collection property.

.

Compile this code into MyNamespace.dll. Then add the control to your ASPX page.

.

Each ToolbarDropDownList (such as InsertHtmlMenu) has two associated array properties, a List property and a Names' Property. For InsertHtmlMenu, the two properties are InsertHtmlMenuList and InsertHtmlMenuNames. If set, these properties will fill the InsertHtmlMenu dropdownlist. InsertHtmlMenuList is an array of HTML blocks and InsertHtmlMenuNames is a list of the display names for those values. The length of both arrays must match.

.

Below are all the possible values

.
.

This page was automatically generated when this topic (Custom_Toolbar_Items) was renamed to CustomToolbarItems on 11/18/2004 at 3:13 AM by -68.94.227.128.

.

This page was automatically generated when this topic (Custom_Values_in_ToolbarDropDownLists) was renamed to CustomValueInToolbarDropDownLists on 11/18/2004 at 3:13 AM by -68.94.227.128.

.
Summary Tells free textbox to look for files in the SupportFolder
.
Summary This Wiki will explain the installation and use of FreeTextBox
.
  • Installation
.

This page was automatically generated when this topic (FreeTextBox) was renamed to FreeTextBoxa on 11/17/2004 at 8:12 PM by 202.72.148.102.

.
Summary FreeTextBox is ASP.NET HTML editor for web applications. It works with IE 5, 5.5, and 6.0 for PCs and Mozilla 1.3 or greater for PC, Mac, and Linux. This includes Netscape 7 and greater. It does not include IE for Mac, Safari or any version of Opera.asdfasdf
.
Summary FTB_API is a JavaScript object that allows access to all the FreeTextBox controls on a page
.

In JavaScript you can find FreeTextBox control using the following syntax

.
Summary This Wiki explains the installation and use of FreeTextBox
.
  • Installation
.
  • ImageGallery
.
.
Summary The ImageGallery allows images to be uploaded and used in FreeTextBox.
.

The ImageGallery control resides on the page ftb.imagegallery.aspx. The control is not designed to function in concert with other controls as it attempts to resize itself to take up the entire browser window. There are a few important settings on the originating FreeTextBox control.

. .
  • ImageGalleryUrl = this is the URL to the page where the ImageGallery control resides. This does not need to be changed unless you want to store ftb.imagegallery.aspx in a location other than the same folder in which the originating FreeTextBox page resides
.

On the ImageGallery control, there are several settings to customize the functionality of the control:

. . . . .

Instead of reading from the file system, a developer can override the folders and images presented to the user, by setting the following two properties:

.
  • CurrentDirectories - a string[] array of directories to allow the user to navigate toward
.
Redirect Installation
.

This page was automatically generated when this topic (Installation !) was renamed to Installation on 1/24/2005 at 8:57 AM by john@freetextbox.com.

.
Summary How to install FreeTextBox
.

Installing the FreeTextBox support files

.

FreeTextBox uses JavaScript, images, and xml files. To correctly install FreeTextBox, you must install these files. FreeTextBox has two ways of accessing these files:

.
  • External Files - Before FreeTextBox 3.0, all images, javascript and xml were stored as external files. By default, FreeTextBox looks in /aspnet_client/FreeTextBox/ for these files. If you want to store the files in a different location, you need:
.
    • To tell FreeTextBox which kind of files to look for external resources: JavaScriptLocation=ExternalFile, ToolbarImages=ExternalFile, ButtonImagesLocation=ExternalFile
.
  • Internal Resources - As of FreeTextBox 3.0 all the images, javascript and xml is stored inside the FreeTextBox.dll. In ASP.NET 2.0 these files are automatically pulled from the FreeTextBox.dll. In ASP.NET 1.x, you need to add the following httpHandler to web.config:
.

To add FreeTextBox to an ASP.NET page, do the following:

.
  • Add the following line to the top of your page:
.
  • Add the following code between <form runat="server"> tags:
.
  • Add a reference to the FreeTextBox.dll
.
Summary Tells FreeTextBox to use resources within the FreeTextBox.dll. For ASP.NET 1.x, you must add a web.config handler.
.

Languages.xml contains lists all the language resources natively supported by FreeTextBox. To use a langauge, set the Language property of FreeTextBox to the desired local (ex. hu-HU for Hungarian).

.

1 - FreeTextBox first loads English (en-US) from an internal resource to populate all the needed values. This file contains all values used by FreeTextBox.

.

2 - FreeTextBox will then look for a physical language file correspoding with the selected language. For example, if Language="es-ES", FreeTextBox will look for "[SupportFolder]/Languages/es-ES.xml".

.

2.1 - If there is no physical file, FreeTextBox will then look for an internal resource by the same name.

.

3 - If there is a valid language file in (2) or (2.1) then FreeTextBox will load all available values in place of the default en-US values. If a If a value is missing, the original (1) internal English value will be used.

.

Executes commands based on the MSHTML (for IE) and Midas (for Firefox/Mozilla) specifications

.

This page was automatically generated when this topic (Major_FreeTextBox_JavaScript_Functions) was renamed to MajorFreeTextBoxJavaScriptFunctions on 11/18/2004 at 3:13 AM by -68.94.227.128.

.
Summary a property of FreeTextBox that tells FreeTextBox where to find its supporting JavaScript, image, and XML files.
.
Summary This Wiki explains the installation and use of FreeTextBox
.
  • Installation
.
  • ImageGallery
.
.

This property accepts a string of ToolbarItem names. Use commas ( , ) to separate items. A pipe ( | ) will insert a ToolbarSeparator and a semicolon ( ; ) will start a new Toolbar.

.
        bulletedlist,numberedlist"
.
 Strikethrough, Superscript, Subscript, InsertImageFromGallery, CreateLink, Unlink, 
.
 RemoveFormat, JustifyLeft, JustifyRight, JustifyCenter, JustifyFull, BulletedList, 
.
 ieSpellCheck, StyleMenu, SymbolsMenu, InsertHtmlMenu, InsertRule, InsertDate, 
.
 InsertImageFromGallery, Preview, SelectAll, EditStyle
.

The following values are only available in Pro versions of FreeTextBox (or if running on localhost)

.
 Preview, SelectAll, EditStyle, WordClean
.

2. Procedurally

.
                    <FTB:BulletedList runat="server" />
.
                            <FTB:ToolbarListItem Text="SmallCaps" Value="<i>smallcaps</i>" runat="server" />
.
    toolbar2.Items.Add(new BulletedList());
.
    styleMenu.Items.Add(new ToolbarListItem("SmallCaps","smallcaps"));
.

This page was automatically generated when this topic (Toolbar_Configuration) was renamed to ToolbarConfiguration on 11/18/2004 at 3:10 AM by -68.94.227.128.

.
                MenuItem("Don't highlight differences between this topic and previous version", "Hide Changes", federation.LinkMaker.LinkToTopic(aTopic.Fullname))
.
                MenuItem("Show differences between this topic and previous version", "Show Changes", federation.LinkMaker.LinkToTopicWithDiffs(aTopic.Fullname))
.
        aTopic.Version.IfNull
.
                MenuItem("Edit this topic", "Edit", federation.LinkMaker.LinkToEditTopic(aTopic.Fullname))
.
        MenuItem("Show printable view of this topic", "Print", federation.LinkMaker.LinkToPrintView(aTopic.Fullname)),
.
        MenuItem("Find references to this topic", "Find References", federation.LinkMaker.LinkToSearchFor(null, aTopic.Name)),
.
        MenuItem("Rename this topic", "Rename", federation.LinkMaker.LinkToRename(aTopic.Fullname)),
.
                aTopic.Changes.Snip(5).Collect
.
                                Presentations.Link(federation.LinkMaker.LinkToTopic(each.Fullname), [each.Timestamp].ToString), 
.
                MenuItem("List all versions of this topic", "List all versions", federation.LinkMaker.LinkToVersions(aTopic.Fullname)),
.
                aTopic.Version.IfNotNull
.
                        Presentations.FormStart(federation.LinkMaker.LinkToRestore(aTopic.Fullname), "post"),
.
                        Presentations.HiddenField("RestoreTopic", aTopic.Fullname),