Out of the box, Telligent includes support for two text editors.
You can add support for custom text editors by creating a control which implements the CommunityServer.Controls.ITextEditor interface.
Editors are registered in the <editors> section of the <core> node in the communityserver.config file. Each editor is registered as an individual editor node with the following attributes.
You can have different editor nodes using the same control type. For example you could provide two TinyMCE editors, one with a 'basic' mode which only supports bold, italics and underline, and one with an advanced mode which provides more options.
Each editor node can also have one or more <editorOption> nodes assosiated with it. An EditorOption node has two attributes
How these EditorOptions are used is up to the Editor Control. The DefaultTextEditor control ignores these EditorOptions, while the TinyMCE editor uses them to configure TinyMCE Configuration Options.
When modifying or adding editors and editorOptions, you should make your modifications through a communityserver_override.config file. Below are three sample overrides for manipulating editors and editorOptions.
The following markup adds a new editor.
<Override xpath="/CommunityServer/Core/editors" mode="add"> <editor name="myEditor" type="CommunityServer.Controls.DefaultTextEditor, CommunityServer.Controls" resourceName="MyEditor" default="false" resourceFile="customResources.xml" /></Override>
The following markup puts the standard TinyMCE editor into read only mode:
<Override xpath="/CommunityServer/Core/editors/editor[@name='Enhanced']" mode="add"> <editorOption name="readonly" value="1" /></Override>
The following markup disables resizing of the editor.
<Override xpath="/CommunityServer/Core/editors/editor[@name='Enhanced']/editorOption[@name='theme_advanced_resizing']" mode="change" name="value" value="false" />
Telligent Systems, Inc. ©2013, All Rights Reserved