AI OnAI Off
It seems the FormatParagraph tool isn't configurable. I can't see any reason why it shouldn't be configurable like the other tools so I've filed a bug report.
Unfortunately I can't provide any information that solves your problem in an easy way.
/StefanHi Stefan.
Thanks for your answer. I solved by overrideing the GetCssPaths method in the PropertyLongStringControl. I still get the "Remove formatting" option in the dropdown, but all the other options are removed
Here is the code if others have the same problem:
MyProperty.cs
[Serializable]
[PageDefinitionTypePlugIn]
public class MyProperty : PropertyLongString
{
public override IPropertyControl CreatePropertyControl()
{
return new MyPropertyControl();
}
public override EditorToolOption EditorToolOptions
{
get { return EditorToolOption.Undo | EditorToolOption.Redo | EditorToolOption.SpellCheck | EditorToolOption.Refresh | EditorToolOption.Find; }
set { base.EditorToolOptions = value; }
}
}
MyPropertyControl.cs
public class MyPropertyControl : PropertyLongStringControl
{
protected override string GetCssPaths()
{
return string.Empty;
}
}
Br, Tore
Hi.
Is it posible to disable the Format Paragraph drop down list in the editor? I have made a property that inherits from PropertyLongString. I have overriden the EditorToolOptions property and set it to return this: