Hello, how do I do a <--!BREAK> in TinyMCE so I cut where I want for the "Read More" option?

Best Regards.

Comments

binodc’s picture

Break is included in the 4.7 http://drupal.org/project/tinymce as a plugin

try using it in 5.0

rubensans’s picture

I have tried it, but don't find the plugin_reg.php.

Thanks.

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

Budrick’s picture

Take drupalbreak from 4.7 release, put it in plugins folder.
Then edit Js files in tinymce/themes folders - add drupalbreak into plugins line and one of the theme_buttons lines.

drupalluver’s picture

I've been looking for a way to do this for a while! Thank you for your assistance!

jaskegreen’s picture

I've been following the posts on this topic and have found the directions here helpful. I've got the break icon showing, but it's not inserting the break. Are there any other configurations I need to make to make this work?

I'm running Drupal 5 locally on my Mac with Apache 1.3 and the latest versions of PHP and MySQL.

Jason
JC SWAK - web hosting & design
www.jcswak.com

Budrick’s picture

Did you add drupalbreak both to plugins and button lines?
Did you put your cursor to the right position before hitting the button?
Do you get any JS error? (maybe Safari compatibility issue)?
Try it with other browser/PC.

jaskegreen’s picture

You hit it on the head with number three. For some reason, because I saw the editor show up in Safari, I was thinking it should work. Dumb reasoning, I know. So, I opened in Firefox and wha-la! It works great. Thanks for the response, though.

Jason
JC SWAK - web hosting & design
www.jcswak.com

tvenugopal’s picture

Iam not getting button.Its saying tinyMCE.importPluginLanguagePack is not a function.
please help me out