Posted by wwalc on December 23, 2009 at 1:05pm
2 followers
Jump to:
| Project: | CKEditor - WYSIWYG HTML editor |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | ckeditor, module compatibility, Resizable Body |
Issue Summary
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
#1
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) ) {
...
#2
Fixed in CVS. Anyone willing to test it, please use the dev release.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.