OK - tinymce 3.1.0.1 is installed and running under drupal 6.3 - just fine.
I'm trying to get the drupalbreak and drupalimage (img_assist) plugins to work.
I have both of them present under
sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/drupalbreak
sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/drupalimageIn the plugin_reg.php file I have:
$plugins['drupalimage'] = array();
$plugins['drupalimage']['theme_advanced_buttons1'] = array('drupalimage');
$plugins['drupalimage']['extended_valid_elements'] = array('img[class|src|border=0|alt|title|width|height|align|name]');
$plugins['drupalbreak'] = array();
$plugins['drupalbreak']['theme_advanced_buttons3'] = array('drupalbreak', 'drupalpagebreak');and in the profile I can see them in the list of buttons just fine.
But - if I enable drupal image, drupal break or drupal page break then all tinymce textareas on the site disappear - completely. It all goes back to being standard textareas. If I disable them again - back comes the tinymce editor.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | drupalbreak.tgz | 4.53 KB | smscat |
| #3 | drupalbreak.tar_.gz | 4.5 KB | vonster |
Comments
Comment #1
chrissearle commentedStrange. We had to go live this weekend so I removed tinymce.
Am looking again at it now.
I have copied drupalbreak and drupalimage (from img_assist) to tinymce/tinymce/jscripts/tiny_mce/plugins and re-added the lines:
to the plugin_reg.php page.
This time - the buttons appear in the admin settings for the profile (I have only one profile). Here I have enabled the buttons:
In a create blog page (or similar) all buttons appear apart from the drupal ones.
No errors, no watchdog entries, nothing except for no buttons (at least it doesn't break the display of the tinymce decorations of the textedits - but - it still doesn't work.
Comment #2
vertikal.dk commentedchrissearle,
I have the exact same problem. Not that it helps you, but just to ensure that it can be reproduced. I'm trying to hunt down a solution. Will post if I find something.
Martin
Comment #3
vonster commentedThe drupalbreak plugin is for the old format for the plugin. Working from Nathan Haug's previous model, I came up with a version of DrupalBreak as a TinyMCE 3.0 plugin.
See if this fixes your issue with drupalbreak.
I've only tested it against Firefox. Let me know how it fairs on other browsers.
Comment #4
hepabolu commentedVerified here: Drupal 6.4, TinyMCE v3.1.1, TinyMCE module v6.x.1.x-dev + this plugin
work on Safari on OS X Tiger and FireFox2 on OS X Leopard.
Comment #5
chrissearle commentedRight. Drupal 6.54, tinymce 3.1.1, tinymce 6.x-1.1-dev
Firefox 3 - the fix allows drupal break to show and work
Safari 3 - the fix allows drupal break to show but it does nothing when you click it.
Note that tinymce still carries a warning about safari so that may be relevant here.
I guess that the drupal image button needs the same kind of fix too.
As a side issue - the tinymce edit pane seems to be default centered text (all text shows centered when no alignment is applied - even tho at preview/save time - not aligned text is left aligned). This is not really relevant to this issue but just something I spotted today.
Comment #6
attheshow commentedVonster's plugin replacement worked for me.
Drupal 6.4, tinymce 3.1.1, tinymce 6.x-1.1-dev
Comment #7
dmsmidtNot working for me.
Drupal 6.5
TinyMCE 3.0.8 and 3.1.1 and 3.2.0.2
TinyMCE 6.x-1.1-dev
6.x-1.x-dev
FF3
IE7
Safari3
The buttons do show up, but don't work.
Comment #8
dmsmidtAddition to the above statement:
When I manually add the
code with the code plug-in. It is displayed in the TinyMCE field (It's not displaying with the plug-in disabled).
So it does something, but the button just don't insert the
code.
Comment #9
attheshow commentedHmmm...it's no longer working for me after the move to Drupal 6.5.
Comment #10
giorgoskThe attached drupalbreak from comment #3
does work but has some flaws
Tinymce always gets inserted at the end of the tinymce content
and its "Visual" element does get crammed on top of text elements
and can't be "selected" (like other tinymce objects) in order to be
cleared/deleted (one has to go into HTML and clean it)
A different solution exists here
http://drupal.org/node/247163
Comment #11
smscat commentedPresent version on TinyMCE have some changed structure. I made corrected code of your plugin.
See attached archive.
Works fine with Drupal 6 + TinyMCE plugin 6x.1.1-dev + TinyMCE 3.2.1
Comment #12
UnicornSong commentedHi all
I am having the same problem here with drupalbreak - i have selected the buttons in tinymce admin but they do not show in the editor toolbar.
I have tried vonsters patch but still not drupalbreak button in the editor. Im really not sure what to do with smscat's patch since it seems to contain a file with no extension.
Drupal 6.5
Tinymce 3_2_1
Tinymce module 6x-1.1-dev
Comment #13
grapher commentedjust rename it to ZIP and open... but have same problem, i dont see the icon in fronted.
Comment #14
bigjim commentedsame here can't break get images to appear in page edit
Drupal 6.6
TinyMCE Module 6.x-1.1-dev
TinyMCE Version 3.2.0.1
Comment #15
cgjohnson commentedsame here. I can enable the button but it doesn't appear, and users can't actually insert breaks.
Drupal 6.6
inyMCE Module 6.x-1.1-dev
TinyMCE Version 3.2.0.1
Comment #16
iMinnesotan commentedSame here. The fix added the button but it doesn't do anything in the post.
Comment #17
batsonjayI'm not even getting the icon (in the front end).
Drupal 6.8
TinyMCE 3.2.1.1
TinyMCE Module 6.x-1.1-dev
Patch from comment #11 above
Sigh - I knew WYSIWYG editors were going to be a rats nest. This is why there isn't one in Acquia Drupal.
Comment #18
ArthurC commentedMy experience is exactly as noted in the previous post by batsonjay:
Drupal 6.8
TinyMCE 3.2.1.1
TinyMCE Module 6.x-1.1-dev
and I installed the patch provided by smscat in comment 11.
However, smscat, editor_plugin.js is empty in the patch you provided.
Help, please!
Comment #19
jo1ene commented#11 works for me.
#3 does NOT.
Comment #20
nicoloye commented