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/drupalimage

In 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.

CommentFileSizeAuthor
#11 drupalbreak.tgz4.53 KBsmscat
#3 drupalbreak.tar_.gz4.5 KBvonster

Comments

chrissearle’s picture

Strange. 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:

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

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

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:

  • cut, copy, paste
  • bold, italic, underline, strikethrough
  • justifyleft, justifycenter, justifyright, justifyfull
  • bulllist, numlist
  • undo, redo
  • link, unlink
  • image
  • code
  • hr
  • sub, sup
  • drupalbreak, drupalpagebreak, drupalimage

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.

vertikal.dk’s picture

Title: Enabling drupalbreak or drupalimage disables tinymce on textareas » Drupalbreak and drupalimage enabled, but won't show

chrissearle,

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

vonster’s picture

StatusFileSize
new4.5 KB

The 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.

hepabolu’s picture

Verified 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.

chrissearle’s picture

Right. 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.

attheshow’s picture

Vonster's plugin replacement worked for me.
Drupal 6.4, tinymce 3.1.1, tinymce 6.x-1.1-dev

dmsmidt’s picture

Not 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.

dmsmidt’s picture

Addition 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.

attheshow’s picture

Hmmm...it's no longer working for me after the move to Drupal 6.5.

giorgosk’s picture

The 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

smscat’s picture

StatusFileSize
new4.53 KB

Present 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

UnicornSong’s picture

Hi 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

grapher’s picture

just rename it to ZIP and open... but have same problem, i dont see the icon in fronted.

bigjim’s picture

same 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

cgjohnson’s picture

same 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

iMinnesotan’s picture

Same here. The fix added the button but it doesn't do anything in the post.

batsonjay’s picture

I'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.

ArthurC’s picture

My 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!

jo1ene’s picture

#11 works for me.
#3 does NOT.

nicoloye’s picture

Issue summary: View changes
Status: Active » Closed (outdated)