Blog Sections Open

Fixing TinyMCE Unsaved-Changes Warnings in Evolution CMS

A useful manager fix for TinyMCE setups where editors were no longer warned about unsaved content before leaving the page.

Editor trust drops quickly when the backend stops warning about unsaved changes. the article documented a long-standing TinyMCE integration bug where the dirty-state handler was wired incorrectly for some configurations.

The key fix

In the old TinyMCE integration, this logic:

($params['frontend']!==false)? 'myCustomOnChangeHandler' : 'false';

needed to become:

($params['frontend']==false)? 'myCustomOnChangeHandler' : 'false';

Follow-up improvement

The donor also refined the handler so submitting the form would not trigger a false warning:

var runHandler = true;
document.mutate.addEvent('submit', function(){ runHandler = false; });
function myCustomOnChangeHandler() {
    if (runHandler) { documentDirty = true; }
}
Newer post

Troubleshooting Document Links in the TinyMCE Link Dialog

A practical note for cases where the TinyMCE link picker in Evolution CMS shows the filesystem tree but misses expected fields such as resource search or anchor support.

Older post

Using the Cirkuit TinyMCE Skin in Evolution CMS

An extras-style note about bringing the Revolution default TinyMCE skin into Evolution CMS for a more polished editing experience.