This commit is contained in:
chikyun.kim
2018-09-28 10:24:41 +09:00
parent 78f316bc3a
commit 128c089816
377 changed files with 23606 additions and 2107 deletions

View File

@@ -0,0 +1,31 @@
using System.Linq;
namespace YARTE.UI.Buttons
{
public static class PredefinedButtonSets
{
private static readonly string[] _webSafeFonts = new [] { "Courier New", "Times New Roman", "Georgia", "Arial", "Verdana"};
public static void SetupDefaultButtons(HtmlEditor editor)
{
editor.AddToolbarItem(new BoldButton());
editor.AddToolbarItem(new ItalicButton());
editor.AddFontSelector(_webSafeFonts);
editor.AddFontSizeSelector(Enumerable.Range(1,7));
editor.AddToolbarDivider();
editor.AddToolbarItem(new LinkButton());
editor.AddToolbarItem(new UnlinkButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new InsertLinkedImageButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new OrderedListButton());
editor.AddToolbarItem(new UnorderedListButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new ForecolorButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new JustifyLeftButton());
editor.AddToolbarItem(new JustifyCenterButton());
editor.AddToolbarItem(new JustifyRightButton());
}
}
}