Jim's
Tutorials

Fall 2011
course
navigation

TinyMCE

This week I've started a project for Elliot that is essentially adding some functionality to TinyMCE so that it can upload using AJAX. There are existing plugins to do this but none of them worked as well as we wanted so I'm making a new one. It occurred to me that I could publish this plugin as a contribution to the TinyMCE community and I was thinking of turning this into a major project for this tutorial.
I'm currently struggling with a strange bug. The TinyMce's language handling doesn't seem to be working correctly for me.
The language strings are kept in the langs/en_dlg.js file:
tinyMCE.addI18n('en.MY_PLUGIN_NAME_dlg', { title : 'MY_TITLE' });
And the plugin interface uses tags like: {#MY_PLUGIN_NAME_dlg.dialog_title} which should be replaced but for some reason it is not. I tried the developer forums but no one had any ideas.
I think my next step (before I dive into the core of the TinyMCE code and start throwing console.log statements around) is to try starting from an existing plugin and make changes to it until it looks like mine so I can see where it stops working.
http://cs.marlboro.edu/ courses/ fall2011/jims_tutorials/ sam/ TinyMCE
last modified Tuesday November 15 2011 10:40 am EST