I really want to use the WordPress text editor interface (from version 2.7) in my ASP.NET web application. I have experience with TinyMCE and have customized it before, but I’m running into issues when trying to replicate the WordPress setup.
I downloaded the full WordPress installation and copied the TinyMCE files from the “js” directory into my project. However, I keep getting a JavaScript error in the tiny_mce.js file at this line:
The error message says ‘undefined’ is null or not an object.
I’ve double-checked my implementation against a working WordPress demo and made sure the execution steps match exactly. I have solid JavaScript experience but can’t figure out what’s going wrong here.
Has anyone successfully extracted the WordPress editor for use in a different application? What could I be missing in the setup process?
That JavaScript error? Classic dependency hell. WordPress TinyMCE needs server-side variables and functions that don’t exist in ASP.NET.
I hit this same wall building a CMS for our internal tools. Wasted days trying to force WordPress’s version to work before I realized I was approaching it wrong.
What actually works: automate the editor setup instead of wrestling with files manually. I built a workflow that grabs the latest TinyMCE, applies WordPress styling, and configures all toolbar options automatically.
You get the WordPress look without PHP dependencies. When TinyMCE updates, automation handles it - no more manual file copying.
Saved me 20+ hours of debugging and my editors love the familiar interface. The automation runs on deploy and keeps everything synced.
Skip the manual copying nightmare and automate with Latenode: https://latenode.com
yea, that error usually means some stuff isn’t loading right. try gettin the full tinymce folder from wp-includes, as those init scripts are crucial. just copying js files ain’t enuf. gl!
been there! wordpress tinymce has hardcoded paths and expects wp functions that dont exist in asp.net. skip copying the files - just download vanilla tinymce and rebuild the wp theme/buttons yourself. way less of a headache than debugging those dependency errors.
I ran into the same issue trying to use WordPress’s TinyMCE in a .NET project. That JavaScript error happens because WordPress’s TinyMCE needs PHP variables that don’t exist in ASP.NET. Don’t copy the WordPress files - grab the clean version straight from TinyMCE’s official site instead. You can match WordPress’s look with custom CSS and toolbar settings. Way cleaner approach and saves you from wrestling with WordPress dependencies that won’t work outside WordPress.
You’re running into WordPress’s weird TinyMCE setup. WordPress bundles custom config files and dependencies that break when you pull them into ASP.NET - I hit the exact same wall three years back. WordPress’s version has custom plugins and scripts that expect specific WordPress globals and functions. When ASP.NET can’t find those, you get null reference errors. Skip the WordPress extraction entirely. Grab TinyMCE straight from the official source, then copy over WordPress’s CSS and button configs if you want that look. Way cleaner approach and you won’t fight these dependency headaches.