📄 valuededitor.cs
字号:
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using NetFocus.Web.Core;
namespace NetFocus.Web.Applications.Forum
{
public class ValuedEditor : SkinedControl, IValuedControl
{
private ITextEditor editor;
private Unit width;
private Unit height;
public string Value
{
get
{
EnsureChildControls();
return editor.Text;
}
set
{
EnsureChildControls();
editor.Text = value;
}
}
public override Unit Height
{
set
{
height = value;
}
get
{
return height;
}
}
public override Unit Width
{
set
{
width = value;
}
get
{
return width;
}
}
protected override void AttachChildControls()
{
editor = (ITextEditor)FindControl("editor");
if (!Page.IsPostBack && !AjaxManager.IsCallBack)
{
editor.Width = width;
editor.Height = height;
}
}
public string EditorUniqueID
{
get
{
return ((Control)editor).UniqueID;
}
}
public string EditorClientID
{
get
{
EnsureChildControls();
return ((Control)editor).ClientID;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -