Hand expanded FreetextBox function (original)

xiaoxiao2021-03-06  96

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. It is very familiar with:

///

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