By Yazz on
I finding it difficult to get my users to use <!--break--> with TinyMCE since there isn't a simple button for it. You need to edit the raw html. Does anyone know if there is a way to add a new button to TinyMCE to insert the <!--break--> where you want it?
Comments
There is a simple button for
There is a simple button for it, its called Drupalbreak and is in the module download in the plugins folder. there is a readme.txt file in there that explains how to install the button.
see tinymce/plugins/drupalbreak/readme.txt
Can't find it
For me, tinymce plugins are located in:
.../modules/tinymce/tinymce/jscripts/tiny_mce/pluginsHowever, I can't find the drupalbreak plugin.
Drupal 5.1, TinyMCE Module 5.x-1.x-dev, TinyMCE 2.1.0.
Drupal 5 Issue?
I found some other discussions that suggest the drupalbreak plugin is not in the TinyMCE module for Drupal 5.
---
I haven't re-read them, I've actually guided users in at least one of/ if not both of those threads. However, I just installed tinymce with the drupalbreak button (and yes, I've done it on Drupal 5), if you like I can post a link to my demo installation so you can "SEE" it.
I know where the tinymce library stores its plugins. that is not the path I've given in my previous post. If you don't have the downloaded tinymce module on your machine anymore, redownload it (link added below), open it, you will see a plugin folder, inside this folder is drupalbreak. I've just triple checked its still there. If you are using the moxie.module (another version of tinymce) it may not be there.
The drupalbreak folder would be moved to the plugins folder you mention in your post, its not a moxiecode contributed plugin, its a drupal tinymce module addition.
again download the module: http://drupal.org/project/tinymce Direct link to TinyMCE Module 5.x-1.x-dev = http://drupal.org/node/105231 (I just opened this and its inside in the plugins folder)
open it, find the plugins folder (not the plugins folder of the tinymce library), inside the plugins folder is the drupalbreak folder where you will find the readme.txt that explains installation.
I had an old version
The version of tinymce.module I downloaded on Feb 25 doesn't have it. The version I just downloaded (at your suggestion) does have it. I'll update shortly and let you know how I go, but I'm not expecting any problems. It was simply missing from my install.
Works fine ...
I was able to get the drupalbreak plugin working just fine. I can add teaser or page breaks easily. Very handy.
One small thing: in the TinyMCE profile configuration page, where you specify which buttons you want available, both buttons appeared with the teaser break image and text. So you can't tell them apart at this point. I enabled both and when you actually edit a node with TinyMCE, they both appear with the correct image and text and operate correctly. It's just during configuration there's some confusion.