Closed (fixed)
Project:
Tiny Tiny MCE
Version:
6.x-1.9
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2009 at 17:38 UTC
Updated:
28 Oct 2009 at 22:10 UTC
Inserting a page break using the 'Insert Page Break' button (last button in last row of advanced editor) results in the text
<!-- pagebreak -->
being displayed in my output.
The html looks like: <p><!-- pagebreak --></p>
No teaser is created, no page break is actually created. Am I missing something really obvious here?
Comments
Comment #1
endiku commentedI had two sites with paging. One worked and one didn't. After some frustration I realized I simply forgot to check off the checkbox in admin/settings/paging for the specific content type. Doh! Very easy mistake since you are focused on making sure the pagebreak settings for that content type are all correct. Double check that you have Page or Story or whatever you are paging, actually checked off.
If that doesn't work try out this thread http://drupal.org/node/334490
Comment #2
JonoB commentedThanks for the reply endiku, but I dont have the paging module installed.
Comment #3
endiku commentedAh well there is your problem. I'm guessing one of two things.
1. Are you trying to setup the "break" where your node's teaser is separated from, for instance on a news page that links to the full node with a "read more.."
OR
2. Are you trying to break the node into pages "read page 2,3, ect"
I believe #1 is built into drupal core. To affect teaser placement you need to use
<!--break-->.However issue #2 you need the Paging module http://drupal.org/project/paging which defaults to using
<!--pagebreak-->.Without the paging module there is nothing to parse your
<!--pagebreak-->that you are inserting via TineMCE.The
<!--pagebreak-->insertion via TineMCE is totally separate from the pagebreak functionality provided in the Paging module. TinyMCE simply adapted the button in order to make it easier for people using the Paging module.Comment #4
JonoB commentedAhh, ok. That works perfectly. Thanks for the great explaination.
I wonder why the Rich Text Editor says "(Use the Page Break button to insert a Drupal teaser break)" ...?
Comment #5
dalehgeist commentedThis is definitely a problem. I need my content creators to be able to define a teaser, and I don't want them to have to type in
<!--break-->. Right next to the Rich Text Editor link it says "(Use the Page Break button to insert a Drupal teaser break)" - but as has been noted, it actually inserts<!-- pagebreak -->, which has unpredictable results.I'm reopening this. I'm open to any kind of workaround.
Comment #6
dalehgeist commentedOperator error - my bad.
Install.txt says:
"3) Copy or move the contents of the folder tinymce-jscripts-tiny_mce-plugins-pagebreak into tinymce/jscripts/tiny_mce/plugins/pagebreak. This will overwrite part of TinyMCE's code. TinyMCE's pagebreak plugin has been modified to insert a Drupal Teaser break
<--break-->."This works.
Comment #7
dalehgeist commentedClosing this again.