Posted by letimly on March 25, 2011 at 6:03am
6 followers
Jump to:
| Project: | WYSIWYG image upload - Inline images for your WYSIWYG |
| Version: | 6.x-2.9 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
Is there any special setup that needs to happen for it to work properly in a CCK Text Area field?
It works for default Body Field but in the CCK Text Area Field, it shows up as [[wysiwyg_imageupload:x:]]
I thought it works now with 6.x-2.9.
Comments
#1
See open issue, CCK is not supported yet.
#2
Hi EugenMayer,
Could you please point me to the CCK integration issue you mentioned? I can't seem to find anything that is currently active.
It also seems really confusing that CCK textarea support is also the first feature mentioned on the module page as new features in 6.2.x - "CCK Textarea: You can plase image CCK textarea field which run the WYSIWYG or any field having the normal filters applied to them. Great for teasers.." - when in fact it does not work.
Can you clarify this?
Thanks
Erik.
#3
Well CCK support should be in, so it should work. Can you provide any informations?
#4
This can be achieved at theme level.
Something like this worked for me:
<?php
if(module_exists('wysiwyg_imageupload')) {
if (!function_exists("_wysiwyg_imageupload_filter_process")) {
include_once(drupal_get_path('module', 'wysiwyg_imageupload') . '/wysiwyg_imageupload.filter.inc');
}
print "<div>" . _wysiwyg_imageupload_filter_process($node->field_your_cck_field[0]['value']) . "</div>";
}
else {
print "<div>" . $node->field_your_cck_field[0]['value'] . "</div>";
}
?>
#5
You must go to the Input formats if you must configure the input format you have upload with. it's important you have checked "Drupal Wiki inline-images" the images will show now.
#6
I have the same issue here with 6.x-3.0-rc2. I am using a CCK textarea field in a panel element, where it will only display the markup "[[wysiwyg_imageupload:x:]]". Including the image in the body field displays the image as intended. The input filter is active and configured as advised in the documentation.. How can I help? Or what am I missing?
#7
Just a quick note, the work around proposed by dfdavis worked for me as well. I included the code in a custom panel pane where the cck content is now rendered as intended...