Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Editors

Lee edited this page Sep 8, 2015 · 2 revisions

Swapping Out The Markdown Editor

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.

Create Your Own

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.

Clone this wiki locally