When using TinyMCE 3.05 and the paging module, the built-in pagebreak plugin can be used by adding the following code to plugin_reg.php:

if (module_exists('paging')) {
  $plugins['pagebreak']['theme_advanced_buttons3'] = array('pagebreak');
  $plugins['pagebreak']['pagebreak_separator'] = array('<!--pagebreak-->');
}

The existing drupalbreak plugin that ships with tinyMCE is broken and duplicates core TinyMCE functionality. This could also be used to insert <!--break --> tags, but this functionality is already implemented by drupal core itself.

Comments

giorgosk’s picture

flobruit
I did get pagebreak to work but how do I make

<!--break -->

to work ??

giorgosk’s picture

I finally got <!--break--> to work with tinyMCE 3

$plugins['pagebreak'] = array();
$plugins['pagebreak']['theme_advanced_buttons3'] = array('pagebreak');
$plugins['pagebreak']['pagebreak_separator'] = array('<!--break-->');

but I don't know how to make both <!--pagebreak--> and <!--break--> appear at the same time

It would be interesting to find out

dafeder’s picture

That still shows

in the WISIWYG box, even though the actual code is correct. I don't understand the instructions here: http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak - where do you set the options they mention?

rimu’s picture

worked for me :-D

thanks!

mdowsett’s picture

not working for me...I have two "Drupal Teaser/Body Break" checkboxes in the /admin/settings/tinymce/edit/TinyOK page (set up page for my 'TinyOK' TinyMCE role). I check both but neither shows up with the other buttons in my node edit pages

Omniweb’s picture

It works, thank you!

nicoloye’s picture

Issue summary: View changes
Status: Active » Closed (outdated)