📄 freetextboxeditor.cs
字号:
Toolbar toolbar1 = null;
if (CSContext.Current.SiteSettings.EnableEmoticons && CSContext.Current.User.Profile.EnableEmoticons)
{
toolbar1 = new Toolbar();
ToolbarItem[] itemArray1 = new ToolbarItem[0x16];
long num1 = 0;
ArrayList list1 = Smilies.GetSmilies(true);
foreach (Smiley smiley1 in list1)
{
if (num1 == itemArray1.Length)
{
break;
}
string text1 = "../../emoticons/emotion-" + smiley1.SmileyId.ToString();
ToolbarButton button1 = new ToolbarButton(smiley1.SmileyText + " - " + smiley1.SmileyCode, null, text1);
button1.ScriptBlock = "this.ftb.InsertHtml('[" + smiley1.SmileyCode.Replace("'", @"\'") + "]');";
num1++;
itemArray1.SetValue(button1, num1);
}
this.AddItems(toolbar1, false, itemArray1);
}
return toolbar1;
}
protected Toolbar TablesToolBar()
{
Toolbar toolbar1 = new Toolbar();
if (this.toolbarTables != null)
{
string[] textArray1 = this.toolbarTables.Replace(" ", "").Replace(";", ",;,").Replace(",,", ",").ToLower().Split(new char[] { ',' });
for (int num1 = 0; num1 < textArray1.Length; num1++)
{
toolbar1.Items.Add(ToolbarGenerator.ToolbarItemFromString(textArray1[num1]));
}
return toolbar1;
}
ToolbarItem[] itemArray1 = new ToolbarItem[] { new InsertTable(), new EditTable() };
this.AddItems(toolbar1, false, itemArray1);
itemArray1 = new ToolbarItem[] { new InsertTableRowAfter(), new InsertTableRowBefore(), new DeleteTableRow() };
this.AddItems(toolbar1, true, itemArray1);
itemArray1 = new ToolbarItem[] { new InsertTableColumnAfter(), new InsertTableColumnBefore(), new DeleteTableColumn() };
this.AddItems(toolbar1, true, itemArray1);
return toolbar1;
}
public bool allowObjectTags
{
get
{
return this._allowObjectTags;
}
set
{
this._allowObjectTags = value;
}
}
public virtual int Columns
{
get
{
return this._columns;
}
set
{
this._columns = value;
}
}
Unit ITextEditor.Height
{
get
{
return base.Height;
}
set
{
base.Height = value;
}
}
string ITextEditor.Text
{
get
{
return base.Text;
}
set
{
base.Text = value;
}
}
Unit ITextEditor.Width
{
get
{
return base.Width;
}
set
{
base.Width = value;
}
}
public virtual bool EnableHtmlModeEditing
{
get
{
return base.EnableHtmlMode;
}
set
{
base.EnableHtmlMode = value;
}
}
public string GetClientSideMethod
{
get
{
return "FTBClientText()";
}
}
public virtual bool IsRichTextCapable
{
get
{
return FreeTextBox.IsRichCapable(this.Context);
}
}
public virtual int Rows
{
get
{
return this._rows;
}
set
{
this._rows = value;
}
}
public bool showToolbarGeneral
{
get
{
return this._showToolbarGeneral;
}
set
{
this._showToolbarGeneral = value;
}
}
public bool showToolbarTables
{
get
{
return this._showToolbarTables;
}
set
{
this._showToolbarTables = value;
}
}
public virtual string StyleName
{
get
{
if (this._styleName == null)
{
this._styleName = "Office2003";
}
return this._styleName;
}
set
{
this._styleName = value;
base.ToolbarStyleConfiguration = (ToolbarStyleConfiguration) Enum.Parse(typeof(ToolbarStyleConfiguration), value, true);
}
}
public string toolbarEdit
{
get
{
return this._toolbarEdit;
}
set
{
this._toolbarEdit = value;
}
}
public string toolbarFormating
{
get
{
return this._toolbarFormating;
}
set
{
this._toolbarFormating = value;
}
}
public string toolbarGeneral
{
get
{
return this._toolbarGeneral;
}
set
{
this._toolbarGeneral = value;
}
}
public string toolbarLayout
{
get
{
return this._toolbarLayout;
}
set
{
this._toolbarLayout = value;
}
}
public string toolbarParagraph
{
get
{
return this._toolbarParagraph;
}
set
{
this._toolbarParagraph = value;
}
}
public string toolbarTables
{
get
{
return this._toolbarTables;
}
set
{
this._toolbarTables = value;
}
}
public bool useLanguageToolbar
{
get
{
return this._useLanguageToolbar;
}
set
{
this._useLanguageToolbar = value;
}
}
public bool useOldSmilies
{
get
{
return this._useOldSmilies;
}
set
{
this._useOldSmilies = value;
}
}
private bool _allowObjectTags;
private int _columns;
private int _rows;
private bool _showToolbarGeneral;
private bool _showToolbarTables;
private string _styleName;
private string _toolbarEdit;
private string _toolbarFormating;
private string _toolbarGeneral;
private string _toolbarLayout;
private string _toolbarParagraph;
private string _toolbarTables;
private bool _useLanguageToolbar;
private bool _useOldSmilies;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -