📄 emoticonmodule.cs
字号:
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
// Copyright (c) Telligent Systems Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System;
using System.Xml;
using CommunityServer.Components;
namespace CommunityServer.Discussions.Components
{
/// <summary>
/// Summary description for EmoticonModule.
/// </summary>
public class EmoticonModule : BaseForumFormattedBodyModule
{
public EmoticonModule()
{
//
// TODO: Add constructor logic here
//
}
protected override void Format(ForumPost post)
{
if(CSContext.Current.SiteSettings.EnableEmoticons)
{
post.FormattedBody = Transforms.EmoticonTransforms(post.FormattedBody);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -