I was running 1.9.4 RC1 with cutesoft's cuteditor for .net. To implement, I added a CuteEditor.cs file to /App_Code/YAF/Editors with the following.
Needless to say, RC2 no longer has a populated /App_Code folder. I added CuteEditor.cs anyway, and it shows as an available editor in admin panel, but when selected, and trying to create a post, I get a blank area that doesn't accept text,
no CuteEdtor 'toolbar', and the 'normal', 'html', 'preview' buttons at the bottom of CuteEditor are blank boxes (with red X)
Is there a new way to add CuteEditor?
RC1 file that works in /App_Code/YAF/Editors
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.Pixel(800);
_editor.Height = Unit.Pixel(400);
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;
}
}
}
}
see attached working (RC1) and not working (RC2) editor windows
Edited by user
13 years ago
|
Reason: Not specified