YAFLogo

FunctionSys
  • FunctionSys
  • 56.6% (Neutral)
  • YAF Forumling Topic Starter
2009-04-05T21:35:16Z
😞

install Cute editor with Yet Another Forum

greeting to you

i'm using ASP.NET (C#.NET 2008)

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
Sponsor
logan
  • logan
  • 100% (Exalted)
  • YAF Leader
2009-04-05T21:40:49Z
does it show up in the editors dropdown in admin panel??
test
FunctionSys
  • FunctionSys
  • 56.6% (Neutral)
  • YAF Forumling Topic Starter
2009-04-05T21:51:13Z
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
logan
  • logan
  • 100% (Exalted)
  • YAF Leader
2009-04-05T21:57:24Z
think this should be 2

public static int EditorCount = 2;

what version are you using??

what shows up in dropdown??


test
FunctionSys
  • FunctionSys
  • 56.6% (Neutral)
  • YAF Forumling Topic Starter
2009-04-05T22:04:53Z
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
logan
  • logan
  • 100% (Exalted)
  • YAF Leader
2009-04-05T22:13:33Z
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
FunctionSys
  • FunctionSys
  • 56.6% (Neutral)
  • YAF Forumling Topic Starter
2009-04-05T22:23:11Z
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
RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time
2010-04-11T20:40:38Z
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