Hi smaaza ,
Follow the steps to Integration CuteEditor with YetAnotherForum
1. Put all dll file into the bin folder of your website.
2. Put CuteSoft_Client folder to the rool of you website.
3. Open file 'ForumEditor.cs' of you site, find section
public enum EditorType
{
etText = 0,
etBBCode = 1,
etFCKv2 = 2,
etFreeTextBox = 3,
etFCKv1 = 4,
etBasicBBCode = 5,
etFreeTextBoxv3 = 6
}
4. Add ' cuteEditor=7' into above section, like:
public enum EditorType
{
etText = 0,
etBBCode = 1,
etFCKv2 = 2,
etFreeTextBox = 3,
etFCKv1 = 4,
etBasicBBCode = 5,
etFreeTextBoxv3 = 6,
cuteEditor=7
}
5. Find section
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)"
}
6. Add "CuteEditor v6.3 (HTML)" into above section, like:
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)"
}
7. find section 'public static int EditorCount = 7;' change to 'public static int EditorCount = 8;'
8. Find section
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();
}
return null;
}
9. Add " case EditorType.cuteEditor: return new CuteEditor1();" into above section, like:
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;
}
10. Add the class below into the file 'ForumEditor.cs'
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;
}
}
}
11. Build your solution
Regards,
Ken