Posted by GDI on July 30, 2011 at 9:49am
3 followers
Jump to:
| Project: | CKEditor - WYSIWYG HTML editor |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hello, I have a problem with DrupalPageBreak button, it not appear, but DrupalBreak button (teaser) appears on toolbar. I`ve found this problem in 6.x-1.5 version, then I`ve installed 6.x-dev version (2011-Jul-19), but still have the same problem. Both plugins switched on in the CKEditor profile for current role. I`ve tried to debug this issue and found that 'Drupal.settings.ckeditor.pagebreak' variable is undefined in 'if' statement in the line 46 of 'ckeditor\plugins\drupalbreaks\plugin.js' file. If I comment this line and also comment the closing braсket in line 53, DrupalPageBreak button appears on toolbar.
<?php
//if ( Drupal.settings.ckeditor.pagebreak ) {
editor.ui.addButton( 'DrupalPageBreak',
{
label : Drupal.t( 'Insert Page Break' ),
icon : this.path + 'images/drupalpagebreak.png',
command : 'drupalpagebreak'
});
//}
?>
Comments
#1
Really thx for help. Now this "if" is not needed here, but we forget about it.
I commit this fix to GIT, so pls update to last DEV version.
Greetings
#2
Automatically closed -- issue fixed for 2 weeks with no activity.