-
Notifications
You must be signed in to change notification settings - Fork 394
Editors
MVC Forum actually comes with two Rich Text Editors build in. MarkDown Editor and TinyMCE (Default). These can be found in the following folder in your MVC forum installation.
Views > Shared > customeditors
To swap out the TinyMCE with the Markdown Editor you just need to change the value in the Web.config for the AppSetting EditorType. The following are all available
<add key="EditorType" value="tinymceeditor" />
<add key="EditorType" value="markdowneditor" />
IMPORTANT: Please note that TinyMCE is the main tested editor and has majority of the functionality, it is also the preferred editor by us.
If there is another Editor you want to use, its very simple to add it in. Just make a new view in the customeditors folder and name it whatever the editor is. Then make sure you update the
forumeditor.cshtml in the EditorTemplates folder
Virtual Directory
One last thing you will need to change though if you are using a virtual directory and an MVC Forum less than v1.2.5, make sure all the script references are changed to use @Url.Content("") with a tilda (Or upgrade to v1.2.5+).
For example...
@Url.Content("~/scripts/tiny_mce/jquery.tinymce.js")
Or the editors won't work correctly.
This project is not actively developed anymore