Commit 92089616 authored by sun's avatar sun

#289218 by gustav: Fixed E^ALL notice if node has no body field.

parent e4d720b2
......@@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 6.x-x.x, xxxx-xx-xx
---------------------------
#289218 by gustav: Fixed E^ALL notice if node has no body field.
#304243 by sun: Code clean-up for wysiwyg_editor_user_status().
#299108 by toniw: Added setting for TinyMCE's auto-cleanup paste feature.
#293916 by sun: Clarified TinyMCE compatibility in README.txt.
......
......@@ -77,8 +77,10 @@ function wysiwyg_editor_elements() {
*/
function wysiwyg_editor_form_alter(&$form, &$form_state) {
// Disable 'teaser' textarea.
unset($form['body_field']['teaser_js']);
$form['body_field']['teaser_include'] = array();
if (isset($form['body_field'])) {
unset($form['body_field']['teaser_js']);
$form['body_field']['teaser_include'] = array();
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment