Reported in #659278: Teaser button/text is missing (comment #17) by gadzuk.
When the following module is installed and enabled: http://drupal.org/project/resizable_body break buttons are missing.

To reproduce, do the following:
- go to admin/content/node-type/page
- click on "Submission form settings -> Resizing Options"
- uncheck "Use "Split Summary at Cursor" teaser button?"

Confirmed in Resizable Body 6.x-2.0.

Comments

wwalc’s picture

Just a rough idea:

In ckeditor.module

/**
 * Implementation of hook_form_alter()
*/
function ckeditor_form_alter(&$form, $form_state, $form_id) {
  if (substr($form_id, -10) == '_node_form') {
    $nodetype = $form['type']['#value'];
    if (variable_get('resizable_body_split_' . $nodetype, TRUE) == FALSE) {
      // print_r($form['body_field']['teaser_js']);
      *** Code goes here ***
    }
  }
}

Take $form['body_field']['teaser_js'], call drupal_add_js and add some setting that will be recognized by Drupal.ckeditorTeaserInfo which is called in plugins/drupalbreaks/plugins.js (lines 38, 47):

...
if ( Drupal.ckeditorTeaserInfo(editor.name) ) {
...
wwalc’s picture

Status: Active » Fixed

Fixed in CVS. Anyone willing to test it, please use the dev release.

Status: Fixed » Closed (fixed)
Issue tags: -ckeditor, -module compatibility, -Resizable Body

Automatically closed -- issue fixed for 2 weeks with no activity.