Port to drupal 6.0
reikiman - February 16, 2008 - 18:15
| Project: | quicktags |
| Version: | 5.x-3.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Description
I ran the coder (code review) module and it led me through some changes that got close to it working on drupal 6.
Remaining issues are:
Line 116: new hook_theme() function is required to register theme_ functions (Drupal Docs http://drupal.org/node/114774#theme_registry)
function theme_quicktags_textfield($element) {
severity: criticalLine 47: The menu system has been completely over-hauled in 6.x. (Drupal Docs http://drupal.org/node/102338)
if ($may_cache) {
severity: criticalLine 48: The menu system has been completely over-hauled in 6.x. (Drupal Docs http://drupal.org/node/102338)
$items[] = array(
severity: criticalLine 54: The menu system has been completely over-hauled in 6.x. (Drupal Docs http://drupal.org/node/102338)
$items[] = array(| Attachment | Size |
|---|---|
| quicktags.diff | 7.05 KB |

#1
Moving from bug to task since needing a 6.x version is not exactly a bug.
#2
subscribing.
#3
Attached is a patch without the coder style fixes. It should be more or less complete.
however, it does not work - an additional textarea is shown instead of the buttons. I think this may be a javascript error.
#4
#5
Looks like the new way Drupal handles JavaScript doesn't agree with Quicktags' dynamic JavaScript file. We need to explicitly tell it not to try to aggregate the JavaScript or errors will go crazy.
Also, looks like the new drupal_get_js() will no longer take a query string like "?q=quicktags" as a valid JavaScript location. I removed the "?q=" for now (meaning you need a server that supports clean URLs). A cleaner solution would be to either add inline JavaScript, or save a physical file into the files directory that the aggregater can agree with.
However, this patch is fully working and changes as little code as possible. The fix needed to cleanly add the dynamic JavaScript file should be done in both the 5 and 6 version in a later patch.
#6
I can confirm the patch is working, although there are two remaining issues:
#7
Hello,
could somebody please upload a patched version of the module?
I am desperately trying to get this running on drupal 6 :)
thanks a lot,
paddes
#8
You may wanna try the markitup module. It and this module are very similar when it comes to the end user.
http://drupal.org/project/markitup
#9
thanks a lot, but I found something better. The BUeditor.
http://drupal.org/project/bueditor