TinyMCE - can't get drupalbreak to work no matter what I do
I am trying to use drupalbreak with TinyMCE, but the button just doesn't appear in the TinyMCE toolbar.
I have done the following as per drupalbreak/readme.txt:
1) copied the drupalbreak directory to the modules\tinymce\tinymce\jscripts\tiny_mce\plugins directory
2) added
$plugins['drupalbreak'] = array();
$plugins['drupalbreak']['theme_advanced_buttons3'] = array('drupalbreak', 'drupalpagebreak');
to the end of modules/tinymce/plugin_reg.php, just before the return statement
3) edited my tinymce profile and enabled the two buttons labelled "Drupal Teaser/Body Break"
There are no error messages in the log, and when I try to edit a node I get the TinyMCE toolbar alright, but with every button except the drupalbreak ones.
Anyone else had this problem? Can anyone help me please?
L

I have had that problem. It
I have had that problem. It had to do with the location I had saved the drupal break stuff to. In your profile page for tinymce can you actually see button graphics, or just text. If it is finding the graphics then the break stuff is probably in the right place, if not chances are it is only reading the array from the setup script and adding those words
It's finding the graphics,
It's finding the graphics, so I guess the stuff is in the right place. Thanks for suggestion though.
Lucy C
Javascript error with TinyMCE plugins?
I also couldn't get the Drupalimage plugin to work. When I look at the edit node page in my browser, the Firefox Javascript Console reports the following errors:
Error: tinyMCE.addPlugin is not a function
Source File: http://lucy-connelly.com/pjm/modules/tinymce/tinymce/jscripts/tiny_mce/p...
Line: 1
Error: tinyMCE.addToLang is not a function
Source File: http://lucy-connelly.com/pjm/modules/tinymce/tinymce/jscripts/tiny_mce/p...
Line: 5
...so I guess that could be why the buttons aren't showing, but what does it mean?
Anyone know the answer to this?
Lucy C
It means that the tinymcy or
It means that the tinymcy or the plugin is calling a method (function) that has not been defined. This is generating the error. The harder question is why doesnt it exist. All I could think of is that you download and reinstall the tinymce module and engine and see if the error resolves. Sorry I couldnt offer anything insightful!
Thanks
Thanks gollyg - I've just solved it!
I had a very old version of the tinymce engine (1.44) and didn't realise it.
I've updated to the latest version (2.07) and drupalbreak is working fine. I haven't tried drupalimage yet but I'd bet that's fine too.
Lucy C
nice stuff. enjoy your new
nice stuff. enjoy your new found teaser control ;)
With the new version of
With the new version of tinyMCE (3.x), they have blessed us (like every good updater does) with a complete rework of the API, meaning everything u've ever made for tinyMCE just became worthless
so now I have a rather big problem, since the spellchecker only works with the 3.x version, but I can only get the drupalbreak to work with the 2.x version
thx devs, u've just illustrated how irrelevant it is to make stuff that's backwards compatible
hope u burn in hell
For making free software?
Burn in hell for making free software which you are under no obligation to use? That is an odd sentiment.
If you don't like how TinyMCE works then use another HTML editor or write your own. No need to condemn the developers to the fiery pit.
I personally am thrilled that others see fit to write so much free software, and accept the fact that they are writing it for themselves rather than for me. I'm just a freeloader.
Can you provide me with a list of free software you've developed so I can go and publicly criticize all bugs I find?
Thanks,
Peter