Closed (outdated)
Project:
TinyMCE
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2008 at 23:32 UTC
Updated:
14 Jan 2021 at 19:48 UTC
Jump to comment: Most recent
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
Comment #1
giorgoskflobruit
I did get pagebreak to work but how do I make
to work ??
Comment #2
giorgoskI finally got
<!--break-->to work with tinyMCE 3but I don't know how to make both
<!--pagebreak-->and<!--break-->appear at the same timeIt would be interesting to find out
Comment #3
dafederThat 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?
Comment #4
rimu commentedworked for me :-D
thanks!
Comment #5
mdowsett commentednot 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
Comment #6
Omniweb commentedIt works, thank you!
Comment #7
nicoloye commented