Re: Installing CuteEditor 6.3 in Forum YetAnotherForum

  •  03-11-2011, 12:12 AM

    Re: Installing CuteEditor 6.3 in Forum YetAnotherForum

    Hi RichP714,
     
    Please download the source code project of YAF1.9.5.5 and create a file name "CuteEditor.cs"  under "YAF1.9.5.5source\YetAnotherForum.NET\Classes\Editors\CuteEditor.cs" and than re-build the project to try again. It works fine for me.
     
    There are some feature of YAF1.9.5.5 install version cause CuteEditor does not show in the editor list.  So I suggest you use the source code project.
     
    The code of "CuteEditor.cs"
     
    1. namespace YAF.Editors  
    2. {  
    3.     using System;  
    4.     using System.Reflection;  
    5.     using System.Web.UI.WebControls;  
    6.     using YAF.Classes;  
    7.     using YAF.Core;  
    8.     using YAF.Types;  
    9.   
    10.     public class Cute_editor : RichClassEditor  
    11.     {  
    12.         CuteEditor.Editor _editor = new CuteEditor.Editor();  
    13.   
    14.         public Cute_editor()  
    15.         {  
    16.   
    17.         }  
    18.         protected override void OnInit([NotNull] EventArgs e)  
    19.         {  
    20.             _editor.ID = "CE";  
    21.             //_editor.Width = Unit.Percentage(600);  
    22.             //_editor.Height = Unit.Percentage(400);  
    23.             _editor.Width = Unit.Pixel(780);  
    24.             _editor.Height = Unit.Pixel(320);  
    25.             this.AddEditorControl(this._editor);  
    26.             base.OnInit(e);  
    27.         }  
    28.   
    29.         public override bool Active  
    30.         {  
    31.             get  
    32.             {  
    33.                 return true;  
    34.             }  
    35.         }  
    36.         public override string ModuleId  
    37.         {  
    38.             get  
    39.             {  
    40.                 return "9";  
    41.             }  
    42.         }  
    43.         public override string Description  
    44.         {  
    45.             get  
    46.             {  
    47.                 return "CuteEditor Editor(HTML)";  
    48.             }  
    49.         }  
    50.         public override string Text  
    51.         {  
    52.             get  
    53.             {  
    54.                 return _editor.Text;  
    55.             }  
    56.             set  
    57.             {  
    58.                 _editor.Text = value;  
    59.             }  
    60.         }  
    61.   
    62.   
    63.     }  

     
     
    regards,
     
    Ken
View Complete Thread