YAFLogo

smaaza
  • smaaza
  • 67.4% (Friendly)
  • YAF Forumling Topic Starter
16 years ago
CuteEditor 6.3:

it's 14.5MB Zip file i couldn't Attache it .zip. it said too big file.

Anyway :

if you Want To Download it Click Here  

it's Very easy to integrate with .net.

Cute Editor for ASP.NET is the most powerful WYSIWYG (What You See Is What You Get) browser-based Online HTML Editor for ASP.NET.

I added the Name of the editor in [color=red]ForumEditor.cs

I Followed this steps to Integrate CuteEditor with YetAnotherForum

1. Put all dll file into the bin folder of My website.

2. Put CuteSoft_Client CuteEditor folder to the YetAnotherForum Folder.

3. Open file 'ForumEditor.cs' of My site Add The CuteEditor Class And Change Some Values:

you have to add some code to the ForumEditor.cs file :


 
🅱  public enum EditorType
  {
   etText = 0,
   etBBCode = 1,
   etFCKv2 = 2,
   etFreeTextBox = 3,
   etFCKv1 = 4,
   etBasicBBCode = 5,
   etFreeTextBoxv3 = 6,
   cuteEditor=7
  }
 
 
  public static string [] EditorTypeText =
  {
            "Text Editor",
            "BBCode Editor",
            "FCK Editor v2 (HTML)",
            "FreeTextBox v2 (HTML)",
            "FCK Editor v1.6 (HTML)",
            "Basic BBCode Editor",
            "FreeTextBox v3 (HTML)",
            "CuteEditor v6.3 (HTML)"
  }

  'public static int EditorCount = 7;' change to 8


public static int EditorCount = 8;' 
 
 
public static ForumEditor CreateEditorFromType( EditorType etValue )
  {
   switch ( etValue )
   {
    case EditorType.etText: return new TextEditor();
    case EditorType.etBBCode: return new BBCodeEditor();
    case EditorType.etFCKv2: return new FCKEditorV2();
    case EditorType.etFreeTextBox: return new FreeTextBoxEditor();
    case EditorType.etFCKv1: return new FCKEditorV1();
    case EditorType.etBasicBBCode: return new BasicBBCodeEditor();
    case EditorType.etFreeTextBoxv3: return new FreeTextBoxEditorv3();
    case EditorType.cuteEditor: return new CuteEditor1();
                 
   }
   return null;
  }
 
 
   public class CuteEditor1 : RichClassEditor, INamingContainer
        {

            CuteEditor.Editor _editor = new CuteEditor.Editor();

            public CuteEditor1()
            {
                _editor.ID = "CE";
                this.Controls.Add(_editor);
            }

            public override string Text
            {
                get
                {
                    return _editor.Text;
                }
                set
                {
                    _editor.Text = value;
                }
            }


        }[/b]


4.Build the solution.

5.Build Succeded.

CuteEditor: v6.3 Working Fine With YAF

that is all.

Sponsor
RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time
14 years ago
How can cuteeditor be implemented with 1.9.4? there is no ForumEditor.cs
Enjoy!

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

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time
14 years ago