Active
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2011 at 09:49 UTC
Updated:
3 Sep 2012 at 06:27 UTC
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.
//if ( Drupal.settings.ckeditor.pagebreak ) {
editor.ui.addButton( 'DrupalPageBreak',
{
label : Drupal.t( 'Insert Page Break' ),
icon : this.path + 'images/drupalpagebreak.png',
command : 'drupalpagebreak'
});
//}
Comments
Comment #1
dczepierga commentedReally 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
Comment #3
gagarine commentedGet the same issue on D7
Comment #4
laoguxintan commentedSo do I. In drupal 7.15.
Comment #5
mkesicki commentedGuys , please don't change versions to which belongs ticket between 7.x and 6.x.
This is confusing for us and other users.
In such cases , please add new ticket with proper version an link both tickets each other.