Getting Drupal page breaks to work in FCKeditor

FCKeditor doesn’t insert a <!–break–> when clicking on “pagebreak” – it gives some other code which doesn’t help us – which means we can’t split our content into a “read more.” Luckily there’s a fix! To get the correct page breaking code you’ll need to install this fckeditor plugin which unzips into the FCKeditor plugins folder, then add ‘DrupalBreak’ into your fckeditor.config.js and remove ‘PageBreak’ in the relevant places.

Browsers usually cache .js files so you’ll need to either empty your cache or type in the full url to fckeditor.config.js and refresh the page to make sure you’re getting the changes. Now Deshun can split her pages!

Technorati Tags: ,

Comments

  1. April 4th, 2007 | 10:00 am

    Hey thanks, that’s useful. I moved back to tinymce ‘cos of the flexibility in building profiles.

    Two cool modules I dig for breaking pages is the “pager” module and the “ed_readmore” module which work with any editor.

  2. April 4th, 2007 | 5:11 pm

    …and to think I moved away from tinymce to fckeditor because of your recommendation! I guess you can hide behind that big umbrella of “options-oriented”! Thanks for the page breaking tip.

  3. May 15th, 2008 | 5:34 pm

    album downloadable hip hop mp3 music
    audio download song
    artist download mp3 music soundtrack

Leave a reply