The readme state :

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');

When it should say something like :

2. Open up plugin_reg.php in the modules/tinymce directory. Then add the following lines :

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

Put them at end of that file, just before

return $plugins;
}

Comments

juliendorra’s picture

Status: Active » Needs review
StatusFileSize
new1012 bytes

Here is a modified README.txt (I improved the wording over the example above)

Please add it to CVS as I'm probably not the first to stumble on this little thing ( as this tip suggest http://drupal.org/node/82437#comment-155328 )

juliendorra’s picture

Installation
------------
1. Copy the drupalbreak directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins).

2. Open up plugin_reg.php in the modules/tinymce directory. Then you have to add the following lines :

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

Put them at end of that file, just before :

return $plugins;
}

3. Finally, enable this plugin under Admin > Settings > TinyMCE, under the Buttons & Plugins section

spiffyd’s picture

Version: 5.x-1.9-1 » 6.x-1.x-dev
Priority: Normal » Critical
Status: Needs review » Active

I've installed the latest version of TinyMCE module and editor (v3.1.0.1). drupalbreak is installed correctly but doesn't show up as a button. Any suggestions?

markabur’s picture

yes, i think the new instructions are fine -- they do get drupalbreak added to the profile config screen, but the drupalbreak plugin isn't showing up as a button on the toolbar (needs to be rewritten for tinymce v3?), which is a separate issue.

spiffyd’s picture

StatusFileSize
new40 KB

Apparently the included drupalbreak plugin is for an older version of TinyMCE. I found this updated version of the plugin which works fine with TinyMCE 3.x... give it a spin!

markabur’s picture

great, that helps... though i do have to comment out the two "console.debug" lines (21 and 25) in order to get the new plugin to work. thanks!

spiffyd’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new8.13 KB

I'll confirm that what you did works. For some reason I didn't have to do this a while back but upon closer investigation, drupalbreak wasn't functioning properly again (I haven't used it in awhile) so your fix worked.

I've tested this plugin on FF and Opera and Chrome. It works on FF and Opera but not Chrome. Not sure if this is a browser limitation or has anything to do with code.

I made the fixes mark12b described in #6 and here's the new drupalbreak plugin that should work (in all browsers except Chrome).

Folks, please review and can someone roll this into the module please?

markabur’s picture

i tested this version of drupalbreak in safari 3 and firefox 3 on mac, and although it does add the drupalbreak button, and the button does add the break, it adds it at the end of the body rather than at the cursor. not sure how it used to work though... maybe this is as good as it got?

spiffyd’s picture

There are actually two types of drupal breaks - one is "teaser" break, one is "page" break. You want the "teaser" break. Check to see if you have the right option selected in TinyMCE settings and not the page break.

markabur’s picture

it's the right version of the button... after a little further digging, it's just acting that way in certain situations when tinymce is generating invalid markup -- i paste 3 paragraphs and end up them marked up as paragraphs but also wrapped in an outer paragraph tag. once i remove the outer paragraph it's possible to put the drupalbreak between paragraphs.

bejayoharen’s picture

This did not work for me in safari 3.1.2. Worked on firefox on same setup. When Installed, safari refused to show editor box at all. I was unable to install the other zip.

bejayoharen’s picture

hmmmm...... just reinstalled and it seems okay on safari now......

bejayoharen’s picture

Looks like it works sometimes and not others. Can't have that on my site, so looks like I'll have to switch to something else. Hope you guys work it out soon! Good luck!

cgjohnson’s picture

Does anyone know whether FCK editor or any other wysiwyg works with drupalbreak or the D6 summary feature? I am longtime a fan of tinyMCE -- and hate to even mention the other one here -- but the probs with the drupalbreak are unfortunately a deal breaker.

On our site, as with the others here, drupalbreak shows up in the visibility settings but does not actually appear on the editor, and thus is unusable. I'd love to have the default summary function AND tinymce!

spiffyd’s picture

There is nothing wrong with this Drupalbreak plugin (see #5). I use it all the time w/ TinyMCE with zero problems.

Make sure you're using Firefox or IE browser... I know that there may be problems with TinyMCE and its plugins with other browsers.

cgjohnson’s picture

Thanks SpiffyD. I'm using firefox and others are using IE. Still doesn't show up even after the fix.... was always fine in D5. are you in drupal 6?

spiffyd’s picture

StatusFileSize
new628.7 KB

Yes I am using Drupal 6. I am also using...

1) tinymce_3_1_0_1
2) Patch: tinymce-fix-roles-warning-245531-13
3) Patch: ToggleTinyMCE.patch (toggle disable tinymce fix)
4) the latest dev module version

Search this drupal site for threads to these patches.

I've attached a zip of my entire tinymce setup with drupalbreak which took me 2 months worth of trial and error to put together. See if it works for you...

lmayer’s picture

Hi Spiffyd - thanks for the zip. I uploaded it and enabled it and set permissions to use it (Drupal 6.8) but am not able to create new profiles. I'm using Firefox on a Mac. I get a "page not found" error when I click on the link for "create a new profile." The url it points to is http://mysite.edu/tinymce//admin/settings/tinymce/add which looks wrong to me, too many directory slashes? I'm a newbie to Drupal and so I am pretty sure its me who is doing something wrong. I have it installed in the sites/all/modules/ directory I created. Can you offer any assistance?

spiffyd’s picture

I'd be happy to help you out. Perhaps we can resolve this through instant messaging. PM me your handle for AIM, MSN, or Google Chat and I'll respond.

Denis

cgjohnson’s picture

SpiffyD to the rescue! Thanks, that works.. only issue I have is that I now see the summary and

in the full node. Have you found a way to show only the content after the summary in the full node view?

cg

spiffyd’s picture

@#20, please clarify - I do not understand your issue.

What do you mean by "summary" - teaser? You only see the teaser even in the full node view?

I have a feeling you are using the wrong "break". Drupalbreak comes with 2 kinds of break - one is the teaser break, the other is the page break. If you go to TinyMCE profile settings you will see 2 plugin options for each of these options. Make sure you are using the teaser break and not the page break. Hope that helps.

cgjohnson’s picture

I had an extra word in there -- I meant that we enabled the teaser (not page) break and now we see the code for !--break-- (in the <>)at the end of the teasers in a View

in a node, we see the pre-break text, the !--break-- code and then the rest of the text.

not ideal. Any ideas?

spiffyd’s picture

In order for Drupal Break to work, you cannot type

in the TinyMCE editor. You have to type it in the pop up HTML editor or do it when you disable rich text. Otherwise, you will actually see !--break-- or something erratic b/c TinyMCE treats it as if you wanna actually type out that code...

Does that help?

Any other problems - I have started a thread...

http://drupal.org/node/348207

with a working tarball. I may continue updating it later as long as Moxicode keeps coming up with new features...

kylanvn’s picture

Thank spiffyd. I has been used breakpage in tinemcy

cgjohnson’s picture

Hmm. it used to work right in TinyMCE in Drupal5. I don't want our non-techie editors to have to do too much fancy maneuvering (I know, it's not really fancy, but it is enough to cause some grumbling and confusion). I'll check this link now, thank you.

spiffyd’s picture

The reason many people can't get Drupalbreak plugin to work is one reason... Most likely the plugin they got is outdated and is not compatible with the latest Moxicode TinyMCE version (3+). There is actually an updated or patched Drupalbreak plugin floating somewhere out here in the Issues forum - that is how I got mine to work. (See this thread for the entire workign tarball: http://drupal.org/node/348207).

It took me an ungodly long time to figure this supposedly simple issue out. Cheers.

nicoloye’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (outdated)