How do duplicate:
1. goto "drupal_home"/project/issues
2. click submit
Here you will see a title textbox and a project pulldown menu
3. select a project
4. click preview
Now all options for that project are there, but the Description textarea isn't an htmlarea.
However, if you goto "drupal_home"/project/issues/"project_name" that project will already be selected, and the description textarea IS an htmlarea.
-Darrian
Comments
Comment #1
darrian commentedHeres a manual fix... certainly not an optimal solution.
manually edit the drupal database, using mysql: insert into htmlarea values("node/add/project_issue.body",1);
Apparently the htmlarea module isnt able to pick up new textareas after a new one shows up in a post (ie a form submit button click, like preview).
-Darrian
Comment #2
gordon commentedhtmlarea will not display htmlarea the first time that you see a new text area, on a new page. If you default is to enable new textareas, then the next time thru it will work.
It happened this way because when I wrote this routine if it was a new page I was unable to go back to the top of the page to insert the includes. Now with cvs I could do this as the page is completely rendered after everything is done.
The manual change that you did can be edited on the textarea page which is admin/(settings|modules)/htmlarea/textareas and you can change the setting there.
Comment #3
darrian commentedI don't think you quite understand the problem.
No matter how many times you go through the steps I mentioned above to duplicate the problem, the textarea is NEVER a htmlarea even with the default for new textareas is to make them htmlareas.
The page in question can be accessed two ways. One is to specify the project to add an issue to in the http address, i.e. "drupal_home"/node/add/project_issue/"project_name". When you use this method the text area works and becomes an htmlarea after the first time you visit the page.
HOWEVER, when you goto "drupal_home"/node/add/project_issue you get a few options like title, and a pulldown menu to choose what project to submit the issue for. After you choose the project and click submit, you are still at the same web address "drupal_home"/node/add/project_issue, the reason the page now knows what project you want to add an issue for is because that information came through a POST variable. Now there is a textarea on the page that is NOT a htmlarea, and it will never be an htmlarea no matter how many times you try to add an issue in this manner.
Also, the page "drupal_home"/node/add/project_issue never shows up in the configuration that can be reached through: admin/(settings|modules)/htmlarea/textareas unless you manually add it to the database.
The reason I think this is happening is because the first time you visit the web address "drupal_home"/node/add/project_issue there is NO textarea, the textarea only shows up after you choose a project and click submit. So it looks like your code isn't adding new textareas for web addresses that are reached through POST (and probably GET) form submissions.
Hope this helps.
-Darrian
Comment #4
gordon commentedI am unable to set up the project module with the cvs version of drupal, but AFAICS it should work not.