Hi RichP714,
New solution for YAF1.9.4
1. Create a file name "CuteEditor.cs" under "YAF1.9.4\App_Code\YAF\Editors\CuteEditor.cs". Below is the content of this file.
-
- namespace YAF.Editors
- {
- using System;
- using System.Reflection;
- using System.Web.UI.WebControls;
- using System.Web.UI;
- using YAF.Classes.Core;
-
- public class CuteEditor1 : RichClassEditor, INamingContainer
- {
-
- CuteEditor.Editor _editor = new CuteEditor.Editor();
-
- public CuteEditor1()
- {
-
- }
- protected override void OnInit(EventArgs e)
- {
- _editor.ID = "CE";
- _editor.Width = Unit.Percentage(60);
- _editor.Height = Unit.Percentage(60);
- this.Controls.Add(_editor);
- base.OnInit(e);
- }
- public override bool Active
- {
- get
- {
- return true;
- }
- }
- public override int ModuleId
- {
- get
- {
- return 9;
- }
- }
- public override string Description
- {
- get
- {
- return "CuteEditor Editor(HTML)";
- }
- }
- public override string Text
- {
- get
- {
- return _editor.Text;
- }
- set
- {
- _editor.Text = value;
- }
- }
- }
- }
2. Open file "YAF1.9.4\themes\cleanSlate\theme.css", find section below
.yafnet table.content td {
padding: 10px;
border: solid 1px #eeeeee;
}
Change to
.yafnet table.content td {
border: solid 1px #eeeeee;
}
Style setting "padding: 10px;" will make cuteeditor become very ugly.
3. Now you can selete CuteEditor in Host Administration->Host Settings->Editors
Regards,
Ken