diff --git a/django_wysiwyg/templates/django_wysiwyg/ckeditor/includes.html b/django_wysiwyg/templates/django_wysiwyg/ckeditor/includes.html
index ef2826d..1932054 100644
--- a/django_wysiwyg/templates/django_wysiwyg/ckeditor/includes.html
+++ b/django_wysiwyg/templates/django_wysiwyg/ckeditor/includes.html
@@ -4,4 +4,20 @@
{% endcomment %}
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/django_wysiwyg/templates/django_wysiwyg/yui/editor_instance.html b/django_wysiwyg/templates/django_wysiwyg/yui/editor_instance.html
index 4922cd9..c65d54f 100644
--- a/django_wysiwyg/templates/django_wysiwyg/yui/editor_instance.html
+++ b/django_wysiwyg/templates/django_wysiwyg/yui/editor_instance.html
@@ -5,8 +5,6 @@
diff --git a/django_wysiwyg/templates/django_wysiwyg/yui/includes.html b/django_wysiwyg/templates/django_wysiwyg/yui/includes.html
index c9667d9..faf6410 100644
--- a/django_wysiwyg/templates/django_wysiwyg/yui/includes.html
+++ b/django_wysiwyg/templates/django_wysiwyg/yui/includes.html
@@ -162,4 +162,24 @@
]
}
};
+
+ function django_wysiwyg_enable(editor_name, field_id, config)
+ {
+ if(!config) {
+ config = django_wysiwyg_editor_configs[field_id] || django_wysiwyg_editor_config;
+ }
+ window[editor_name] = new YAHOO.widget.Editor(field_id, config);
+ window[editor_name].render();
+ }
+
+ function django_wysiwyg_disable(editor_name)
+ {
+ var editor = window[editor_name];
+ if(editor)
+ {
+ editor.saveHTML();
+ editor.destroy();
+ window[editor_name] = null;
+ }
+ }