#1
😞
install Cute editor with Yet Another Forum

greeting to you

i'm using ASP.NET (C#.NET 200😎
i'm using Mozilla Firefox
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

keep keep keep update this YAF
Topic Starter
  • FunctionSys
  • Rank: Member
  • Reputation:
    Neutral
    56.6%
  • Joined: 04/04/2009
  • Posts: 9
#2
does it show up in the editors dropdown in admin panel??
test
  • logan
  • Rank: YAF Leader
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor for the Support Knight: Given to a community member who has answered lots of support questions.
  • Joined: 15/03/2008
  • Posts: 309
  • Thanks: 13 times
  • Was thanked: 62 time(s) in 56 post(s)
#3
logan wrote:

does it show up in the editors dropdown in admin panel??



all editors .. appear , but cuteEditor . not appear ..
although i delete all editor ..just i keep ... this...

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


even this code dose not work.. when i go to admin cp i saw all Editor except cuteEditor . not appear in DropDown
maybe this names of editor built-in in dropDown ??

we hope to devlop this forum to be the best ..

YOUR FAST ACTION IS HIGHLY APPRECIATED


keep keep keep update this YAF
Topic Starter
  • FunctionSys
  • Rank: Member
  • Reputation:
    Neutral
    56.6%
  • Joined: 04/04/2009
  • Posts: 9
#4
think this should be 2
public static int EditorCount = 2;

what version are you using??
what shows up in dropdown??
test
  • logan
  • Rank: YAF Leader
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor for the Support Knight: Given to a community member who has answered lots of support questions.
  • Joined: 15/03/2008
  • Posts: 309
  • Thanks: 13 times
  • Was thanked: 62 time(s) in 56 post(s)
#5
logan wrote:

think this should be 2
public static int EditorCount = 2;

what version are you using??
what shows up in dropdown??



i'm using this YAF-v1.9.1.8-FINAL-SRC
dropdown show me all editor except cuteEditor not appear ..even with this short code .. !

i'll try to type this .. i don't think happened change ..

thanks..


keep keep keep update this YAF
Topic Starter
  • FunctionSys
  • Rank: Member
  • Reputation:
    Neutral
    56.6%
  • Joined: 04/04/2009
  • Posts: 9
#6
the code from the cute editor site smaaza was using ver.1.9.3 RC2

i am not sure of how the dropdown is setup in 1.9.1.8




test
  • logan
  • Rank: YAF Leader
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor for the Support Knight: Given to a community member who has answered lots of support questions.
  • Joined: 15/03/2008
  • Posts: 309
  • Thanks: 13 times
  • Was thanked: 62 time(s) in 56 post(s)
#7
logan wrote:

the code from the cute editor site smaaza was using ver.1.9.3 RC2

i am not sure of how the dropdown is setup in 1.9.1.8





ok this is i'm using
1-YAF-v1.9.1.8-FINAL-SRC
2-CuteEditor_for_NET6.3 last version

so how i can setup it ! :cry:
keep keep keep update this YAF
Topic Starter
  • FunctionSys
  • Rank: Member
  • Reputation:
    Neutral
    56.6%
  • Joined: 04/04/2009
  • Posts: 9
#8
This worked for me up until 1.9.4.

http://cutesoft.net/forums/thread/49786.aspx 
Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 
  • RichP714
  • Rank: YAF All-the-Time
  • Reputation:
    Exalted
    100%
  • Medals:
    YAF.NET Supporter: Loves YAF.NET!YAF.NET Red Supporter: Thank you Rich for supporting YAF.NET!YAF.NET Supporter: Supports our efforts. Thank you.
  • Joined: 20/01/2009
  • Posts: 262
  • Thanks: 19 times
  • Was thanked: 20 time(s) in 17 post(s)
Users browsing this topic
    Forum Jump  
    • You cannot post new topics in this forum.
    • You cannot reply to topics in this forum.
    • You cannot delete your posts in this forum.
    • You cannot edit your posts in this forum.
    • You cannot create polls in this forum.
    • You cannot vote in polls in this forum.

    About Us

    The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

    Powered by Resharper Donate with PayPal button

    Project Twitter Updates

    Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved