I am trying to get the page break button to appear in the tool bar.
I have the page break module enabled.
taking a look @ the drupalbreaks/plugin.js source around line #40, there's this conditional that wraps the ui.addButton code for both styles of breaks:
if ( Drupal.ckeditorTeaserInfo(editor.name) || Drupal.settings.ckeditor.teaser == editor.name ) {
For me, that statement is returning false, so the pagebreak button doesn't get displayed. I can test this, by commenting the above conditional out.
I haven't dug deep enough into the javascript to understand what the above is doing, but it seems specific to teaser breaks rather than page breaks, so I'm not sure why it's wrapping the addButton code for page breaks.
So my question is: What do I have to do to get the above to return true? Am I missing a configuration some where?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ckeditor-make-drupal-breaks-work.patch | 1.25 KB | wiifm |
Comments
Comment #1
wiifmHaving exactly the same issue on this drupal 6 site.
Running the latest ckeditor module version 1.3 and the latest ckeditor code 3.5.2.
Inserting some debug code into ckeditor/plugins/drupalbreaks/plugin.js
directly above (line 37)
yields:
in firebug. Removing this if statement out, fixed the issue. Patch attached
Can anyone shed some light on this, and why it appears to not be working?
Thanks
Comment #2
patchshorts commentedPatch doesn't work for me, I have the latest ckeditor from their site with ckfinder. I wasn't able to even get the drupalplugins js to load unless I copied the plugin over. What other information shoud I include?
Comment #3
wiifm@patchshorts,
This patch addresses an issue with the module, not the ckeditor library, it changes the file
i.e. the plugins shipped with the ckeditor module (not library)
Comment #4
dczepierga commentedIssue is not active over 3 month so i closed it.
If problem still exists pls update to last DEV version of CKEditor module, last CKEditor library and then try to reproduce this problem again. If it doesn't help pls report it and write as much details as u can.
Greetings