Problem porting WordPress Editor to a non-WP application

I like the look and feel of the WordPress editor (version 2.7), and I would like to use it in another web application that is written in ASP.NET. I’ve used TinyMCE before, and I’ve even extended it in the past. However, I can’t seem to get the WordPress configuration to work!

I’ve downloaded the entire WordPress package and taken the TinyMCE code (from the “js” folder) and put it in my web site. It ends up giving me an error on the following line of tiny_mce.js

Read More
return f.apply(s||this,Array.prototype.slice.call(arguments,2))

‘undefined’ is null or not an object.

Now, I’ve carefully made sure that the steps of execution are identical with the WordPress demonstration site that I’ve based this from.

I’m not a Javascript newbie (at all), but I can’t seem to figure out why this is not working. Has anybody tried to do this before? What am I missing?

A demo of what I am talking about is here (username=”admin”, password=”demo”). View the source, I have the three parts of Javascript that are (seemingly) required to power the editor.

Related posts

Leave a Reply

3 comments

  1. If you are able to determine which bit is undefined that might give you a clue. I tried looking at the demo with firebug, but tinymce.js was all one line, so I gave up trying to find that code.
    Try putting in either some console.log() if you have firebug, or alert()s before that line, and try to see what f,s,this,arguments etc are when yu get the error, then do the same thing with a vanilla WP install and see the difference?