Hand expanded FreetextBox function

xiaoxiao2021-03-06  14

Author: Zhu Jun Code: C #

Keywords: freetextbox, streaming media

From: http://blog.9cbs.net/foxmail/archive/2004/08/21/81096.aspx

Summary: Recent project requirements can release movies when publishing articles, of course, it is impossible to call HTML code, so I decide to expand the FreteExtBox function, which adds a toolbar button to the function of issuing online movies.

Freetextbox is the .NET environment, a popular Richtext editor, 9CBS blog is useful when publishing an article. Recent project requirements can release movies when publishing articles, of course, it is impossible to call HTML code, so I decide to expand the FreEteExtBox function, which adds a toolbar button for it to implement the function of publishing online movies. Didn't look at the relevant article, directly open the source code of FreeEtextBox, discovering that the project structure is still better, and the source code also has a comment, notice that there is ToolbarItem.cs, ToolbarItems.cs and Toolbarbutton.cs below the ToolbarControls directory. It is definitely here. . Looking at the code, I found a lot of static properties in ToolbarItems.cs, returning a lot of ToolbarButton, respectively.

There is very familiar: ///

/// Returns a ToolbarButton with InsertImageFromGallery JavaScript functions builtin /// public static ToolbarButton InsertImageFromGallery {get {ToolbarButton button = new ToolbarButton ( "Insert Picture (from gallery ) "," insertimagefromgallery "," FTB_InsertImageFromGallery_CLIENTID "); button.ScriptBlock = @"