YAFLogo

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago
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


Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

Sponsor
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
14 years ago
Not a YAF problem -- the plugin extension support works great still.

It looks like the paths are messed up for your Cuteeditor. The control is there... it's just missing all the images and style sheets.

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago
Thanks; if that method is still supposed to work, I'll contact the publisher
Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com