Hi,

I'm testing WYSIWYG with TinyMCE since some days, and I noticed that the editor don't appear on the node edit page whereas I set up tinyMCE to appear on "all nodes except listed", and the textarea below is empty (so it should appear on all nodes).

Does somebody have the same problem than me ? (I'm with tinyMCE 2.x) and it works perfectly for node creation;

Comments

sun’s picture

This should not happen, but OTOH, 6.x has not been tested yet.

Matthew Davidson’s picture

I can confirm this. Oddly, when I change the Input format from 'Full HTML' to 'Filtered HTML', TInyMCE will appear on the edit page. Change it back, and it's gone again.

Matthew Davidson’s picture

Status: Active » Needs review
StatusFileSize
new570 bytes

It's because wysiwyg_editor.module won't render the editor if the node uses the PHP Input format. In Drupal 5.x, the format id number was always 2. In Drupal 6.x, because the PHP Input format is supplied by an optional module, it can have any format id number, and 'Full HTML' has therefore been bumped up to #2 (so we shouldn't test for format #2). The attached patch fixes this by checking to see if any of the filters in the format used by the node are supplied by php.module.

It's possible for CCK text fields to use input formats, so perhaps the module should check for that as well.

zmove’s picture

Status: Needs review » Reviewed & tested by the community

It perfectly works :)

Thank you Matthew

sun’s picture

Status: Reviewed & tested by the community » Fixed

Wow! I'd love to see more patches from you, Matthew.

Thanks, committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.