How do I control where the break for a story/page teaser occurs when using TinyMCE? E.g., if I insert >!--break--> (bracket reversed)I see the actual break tag in the posting and no break occurs.

Thanks, Mel

Comments

eagereyes’s picture

You have to switch to HTML to insert the break comment. I don't know if a better way exists for doing that, but I would also be interested if it did. It's not easy to explain to non-technical people what a comment is, and why it has to be inserted between all the HTML gibberish.

vm’s picture

isnt that what the TinyMCE plugin drupal page break ? that comes with the TinyMCE Module does ?

I do not mean the pre-existing plugins that comes with the actual TinyMCE package. I mean the plugin that comes in the drupal module package itself.

Tresler’s picture

Did you follow the install directions for the drupalbreak plugin?

Installation
------------
1. Copy the drupalbreak directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins).
2. Open up plugin_reg.php and add the following lines to end of that file:
  
    $plugins['drupalbreak'] = array();
    $plugins['drupalbreak']['theme_advanced_buttons3'] = array('drupalbreak', 'drupalpagebreak');
      
3. Then enable this plugin under Admin > Settings > TinyMCE, under the Buttons & Plugins section

It can't come preconfigured because the drupalbreak plugin needs to be transferred to the tinyMCE package you need to download to get the whole thing working.

Hope this helps. Good Luck!

Sam Tresler
http://www.treslerdesigns.com

eagereyes’s picture

Thanks! But this is really well hidden. Very useful, but also well hidden. Why isn't this installed by default?

Tresler’s picture

As you know, you had to download the tinyMCE project seperately. The drupabreak plugin is not part of that project, but needs to be in its directory to work. So you can't very well put it into a directory that isn't part of the drupal download "by default", right?

I know, it confused me as well.

Sam Tresler
http://www.treslerdesigns.com

eagereyes’s picture

I don't even remember downloading tinyMCE separately. But whatever document told me to do that should also have told me what to do with the plugin - I generally read the docs for stuff I install. Though I guess I could do that a bit more carefully.

Mel55113’s picture

Thank you, thank you, thank you.

All I had to do was follow the instructions; too bad I didn't know where they were.

Mel

avolve’s picture

i must be missing something or doing something wrong...

I added drupalbreak to /jscripts/tiny_mce/plugins and edited the plugin_reg.php file.

The check box for drupalbreak appears under the Buttons & Plugins section of Admin > Settings > TinyMCE.

I check this, yet no drupal breakbreak.gif (or other) appears in the editor when creating content.

Anyone have the problem of have an idea what i am doing wrong?

avolve designs | ethical by design

vm’s picture

adjust the row # in the php you are adding to plugin_reg.php. drupalbreak3 change to 5 to see if it dont come up there.

$plugins['drupalbreak'] = array();
$plugins['drupalbreak']['theme_advanced_buttons5'] = array('drupalbreak', 'drupalpagebreak');

this will help make em stick out in case you are missing them while glancing over, there should be two.

also ensure they are above

return $plugins;
}

which resides at the end of the file.

avolve’s picture

Thanks for the advice - after no changes, i went back and looked with fresh eyes

For some reason (obviously me doing!), the drupalbreak plugin was a directory higher than it should have been... that was the source of the problem

avolve designs | ethical by design

t10barba’s picture

put the complete directory in "/jscripts/tiny_mce". thanks avolve.

*******
IGUANA!

eclypse’s picture

Getting closer....

I have the gif appeared with the 2 buttons on the editing page. I 've selected the both (teaserbreak and pagebreak).

I've verified that everything is on the right place.

But when create a new content, the 2 buttons about drupalbreak still doesn't appear!

I've also tried to replace ['theme_advanced_buttons3'] by ['theme_advanced_buttons5']. And it didn't worked.

What else did I miss ?

askibinski’s picture

I think your having this issue:
http://drupal.org/node/247163

The drupalbreak plugin is broken with tinymce 3.

Albert Skibinski - Homepage