I have installed wysiwyg 5.x-2.0 with tinymce on Filtered HTML.
It successfully shows on node/add/page, but not on node/edit/nnn

I've tried pared down to only bold/italic/underline buttons (which are showing correctly on the add page) and removed the image_assist (which I've read may conflict)
I've tried:
- Two different user roles (admin and "editor" - which only has HTML Filter format)
- 5.x-2.dev
- fckeditor instead
- a different content type
Same results in each case.

Looking at the html source which is generated: wysiwyg.js, and wysiwyg-init.js aren't being output.
I've even tried adding them manually to the page.tpl.php file using drupal_add_js, but they still aren't there. ($closure is printed, as it works on node/add)

Any ideas welcome, and I promise to contribute to developments if I get an answer!
(Apologies in advance if this is an exisiting issue - I couldn't find it anywhere.)

Comments

sun’s picture

Status: Active » Postponed (maintainer needs more info)

1) Do you have Popups API module installed?

2) Is it possible that you are editing the wrong page.tpl.php - is there are an override for page-node-edit.tpl.php?

Please make sure you read the FAQ for Wysiwyg module (also linked from the project page).

If Wysiwyg API does not work as expected, please test whether it works

- after clearing/flushing Drupal's cache AND your browser's cache
- by temporarily switching to Drupal core's default Garland theme.
- after removing all wysiwyg profiles, create a new one, and in that profile, remove all plugins/buttons except bold + italic.
- by using the latest development snapshot.
- after disabling (all) other contrib modules (and if it does, re-enable them step-by-step to see who's guilty).
- in a different browser.

In case none of those steps make it work, then we need much more information in this issue. The editor and editor version in question, your browser and browser version, the web server software (Apache/IIS). Hence, setting proper status.

In any case, please report back about the status of this issue. Thanks.

scip’s picture

Sorry for the delay in responding to this...Drupal.org keeps logging me out and the only way to get back in is to request a new password so I lost all my notes.

1. I don't have popups API installed, but I'm not sure if it's needed. The notes say there are no dependencies.
2. I am editing the correct page template

I have read the FAQs. Most of them I understand.

I'd tried all of your suggestions before posting, with the expection of uninstalling all my modules - there are dozens of them.
The editor (I tried 2) and version of the module I gave initially. I tried 3 different browsers, and am running on apache.

In the end, the problem was caused by the diff module. I assume this is because it was overwriting the post-form processing which uses form #after_build. $form['#after_build'] = array('diff_node_form_add_changes');
An upgrade to v2 of that module solved the problem.
Not sure what to do about this, unless there's some way of checking that things aren't overwritten in Drupal.

twod’s picture

Status: Postponed (maintainer needs more info) » Fixed

The problem seemed to have been solved by upgrading the diff module. As far as I know, it's not possible to check that such values are not overwritten so this was a module incompatibility we couln't have done much about. If I recall correctly, that module should have treated $form['#after_build'] as an array and just appended their value to it but I have not verified it nor checked how it was changed in v2.

Status: Fixed » Closed (fixed)

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