install Cute editor with Yet Another Forum------->>> nothing happened

  •  04-06-2009, 2:29 AM

    install Cute editor with Yet Another Forum------->>> nothing happened

    install Cute editor with Yet Another Forum

    greeting to you

    i'm using ASP.NET (C#.NET 2008)
    i'm using Mozilla Firefox
    I'M USING YAF-v1.9.1.8-FINAL-SRC
    I want to install CutEditor in YAF
    HOW I DO THAT ?

    i saw this post
    http://cutesoft.net/forums/thread/49730.aspx

    and nothing happened .. you know ..there is combo box to display all editor you add ..
    but ,, CuteEditor not appear !
    i added that code in class ForumEditor.cs

    i don't know ,, i was delete many things in code and nothing happened or response


    this is .. ForumEditor.cs i modify it


          public enum EditorType
            {
                etText = 0,
                cuteEditor = 1
            }
            public static int EditorCount = 1;
            public static string[] EditorTypeText =
      {
                "Text Editor",
                "BBCode Editor",

      };

            public static ForumEditor CreateEditorFromType(int Value)
            {
                if (Value < EditorCount)
                {
                    return CreateEditorFromType((EditorType)Value);
                }
                return null;
            }

            public static ForumEditor CreateEditorFromType(EditorType etValue)
            {
                switch (etValue)
                {
                    case EditorType.etText: return new TextEditor();

                    case EditorType.cuteEditor: return new CuteEditor1();
               
                }
                return null;
            }


            public static DataTable GetEditorsTable()
            {
                using (DataTable dt = new DataTable("TimeZone"))
                {
                    dt.Columns.Add("Value", Type.GetType("System.Int32"));
                    dt.Columns.Add("Name", Type.GetType("System.String"));

                    for (int i = 0; i < EditorCount; i++)
                    {
                        dt.Rows.Add(new object[] { i, EditorTypeTextIdea });
                    }
                    return dt;
                }
            }

            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;
                    }
                }


            }
     
    --------
    - there are no error
    -but dose not display cuteEditor .. 
    so please ..
     
    your fast action is highly appreciated
     

     
View Complete Thread