Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get TinyMVC .NET class Library to work on ASP.NET MVC 2?
    text
    copied!<p>I am trying to implement the TinyMCE Spellcheck plugin that uses GoogleSpell. The thing is I am trying to install it in an MVC environment.</p> <p>I started by referencing the .NET class Library DLL (MoxieCode.TinyMCE) in my project.</p> <p>Then, I added this code to my web.config:</p> <pre><code>&lt;system.webServer&gt; &lt;handlers&gt; &lt;add name="TinyMCE" verb="GET,HEAD,POST" path="TinyMCE.ashx" type="Moxiecode.TinyMCE.Web.HttpHandler,Moxiecode.TinyMCE" /&gt; &lt;/handlers&gt; &lt;!--previously existing rules--&gt; &lt;validation validateIntegratedModeConfiguration="false"/&gt; &lt;modules runAllManagedModulesForAllRequests="true"/&gt; &lt;/system.webServer&gt; </code></pre> <p>I then added these lines to my <code>tinyMCE.init({});</code> call:</p> <pre><code> plugins: "spellchecker", theme_advanced_buttons3: "spellchecker", spellchecker_languages : "English=en", spellchecker_rpc_url : "TinyMCE.ashx?module=SpellChecker", </code></pre> <p>These steps are outlined in the tutorial <a href="http://ondotnet.deap.nu/2009/01/implementing-tinymce-spellchecker-with.html" rel="nofollow noreferrer">here</a>. I then followed instructions from <a href="https://stackoverflow.com/questions/1122659/tinymce-spellchecker-in-asp-net-mvc">this stack overflow post</a> which recommended the following modification to global.asax to make it mvc friendly:</p> <pre><code> routes.IgnoreRoute("TinyMCE.ashx"); routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); </code></pre> <p>Everything seems fine accept that when I browse to /TinyMCE.ashx i get this error:</p> <blockquote> <p>Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. </p> <p>Requested URL: /TinyMCE.ashx</p> </blockquote> <p>Why can't asp.net mvc process that url?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload