Hi all,
I want to use FreeTextBox editor and I display image button on toolbar, but when i post a message, i fixed in ForumEditor.cs file as
Code:
public class FreeTextBoxEditor : RichClassEditor
{...
protected override void OnInit(EventArgs e)
{
if (_init)
{
Load += new EventHandler(Editor_Load);
PropertyInfo pInfo = _typEditor.GetProperty("ID");
pInfo.SetValue(_editor, "edit", null);
pInfo = _typEditor.GetProperty("AutoGenerateToolbarsFromString");
pInfo.SetValue(_editor, true, null);
pInfo = _typEditor.GetProperty("ToolbarLayout");
pInfo.SetValue(_editor, "FontFacesMenu,FontSizesMenu,FontForeColorsMenu;Bold,Italic,Underline|Cut,Copy,Paste,Delete,Undo,Redo|CreateLink,Unlink|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent|InsertImageFromGallery", null);
Controls.Add(_editor);
}
base.OnInit(e);
}
...
// add
InsertImageFromGallery in to code
but when i reload page, it not displayed.
Please, help me. Thanks for all
PS : and I have an error with interface of it. I can see it in attach file
HuyNQ attached the following image(s):
Hãy để cuộc sống tràn ngập tiếng cười ^^