Closed (fixed)
Project:
Nodewords: D6 Meta Tags
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2010 at 20:26 UTC
Updated:
21 Jan 2010 at 04:30 UTC
Hi guys,
I was wondering if you could possibly accept to add the '#wysiwyg' entry to your textareas so that way I don't have to do it each time I upgrade. Plus, that way, it would make sure that people don't get tags in places where they should not have them.
For example, the description should never include HTML (although I've seen people doing so, it is wrong!)
$form['dc.description']['value'] = array(
'#type' => 'textarea',
'#title' => t('Description'),
'#description' => t('Enter a description. Limit your description to about 20 words, with a maximum of %count characters. It should not contain any HTML tags or other formatting.', array('%count' => variable_get('nodewords_max_size', 350))),
'#default_value' => empty($content['value']) ? (!empty($options['default']['dc.description']['value']) ? $options['default']['dc.description']['value'] : '') : $content['value'],
'#cols' => 60,
'#rows' => 6,
'#wysiwyg' => FALSE, // Add this one entry to all textarea that should never get HTML
);
If you would like to have a patch, let me know.
Thank you!
Alexis
Comments
Comment #1
avpadernoHTML tags are stripped from the meta tags content; avoiding that the textarea form fields used by the module are replaced by a WYSIWYG editor should make more evident to users that HTML tags should not be put into meta tags content.
I added the attribute to all the textareas of the modules, including the one that should contain the content of label.rdf sent by ICRA.
Comment #2
AlexisWilke commentedkiamlaluno,
Thank you! Some editors may not support the option (yet), but FCKeditor does. This is great! 8-)
Alexis