diff --git wysiwyg.api.php wysiwyg.api.php
index 96aaf32..8ca0e4c 100644
--- wysiwyg.api.php
+++ wysiwyg.api.php
@@ -173,3 +173,35 @@ function hook_INCLUDE_plugin() {
   return $plugins;
 }
 
+/**
+ * Act on editor profile settings.
+ *
+ * This hook is invoked from wysiwyg_get_editor_config() after the JavaScript
+ * settings have been generated for an editor profile and before the settings
+ * are added to the page. The settings may be customized or enhanced; typically
+ * with options that cannot be controlled through Wysiwyg module's
+ * administrative UI currently.
+ *
+ * Modules implementing this hook to enforce settings that can also be
+ * controlled through the UI should also implement
+ * hook_form_wysiwyg_profile_form_alter() to adjust or at least indicate on the
+ * editor profile configuration form that certain/affected settings cannot be
+ * changed.
+ *
+ * @param $settings
+ *   An associative array of JavaScript settings to pass to the editor.
+ * @param $context
+ *   An associative array containing additional context information:
+ *   - editor: The plugin definition array of the editor.
+ *   - profile: The editor profile object, as loaded from the database.
+ *   - theme: The name of the editor theme/skin.
+ */
+function hook_wysiwyg_editor_settings_alter(&$settings, $context) {
+  // Each editor has its own collection of settings that can be overridden,
+  // please refer to their respective official documentation for details.
+  if ($context['profile']->editor == 'tinymce') {
+    // Supported values are Booleans, Strings, Numbers and Arrays/Objects
+    // holding only those types. This is limited by what types JSON supports.
+    $settings['cleanup_on_startup'] = TRUE;
+  }
+}
