On Apr 13, 1:46 pm, Dewayne Pinion <[email protected]> wrote: > Not sure what you call those editors, but anyway. I have an application that > has the following: > > <?php echo $form->input('Product.name', array('label' => 'Name:', 'class' => > 'text'))?> > <?php echo $form->input('num', array('label' => 'Number:', 'class' => > 'text'))?> > <?php echo $form->input('model_name', array('label' => 'Model name:', > 'class' => 'text'))?> > <?php echo $form->input('compat_text', array('label' => 'Compatibles > Text:', 'class' => 'text'))?> > <?php echo $form->input('compat_link', array('label' => 'Compatibles > Link:', 'class' => 'text'))?> > <?php echo $form->input('compat_title', array('label' => 'Compatibles > Title:', 'class' => 'text'))?> > > The first 3 (Product.name, num, model_name) are typical text boxes that > allows regular input. However, the next 3 boxes (compat_text, compat_link, > compat_title) somehow are WYSIWYG editor forms. Where should I look to > change this so that all of the inputs are standard input boxes? It is > baffling me how these 3 can be different.
FormHelper's input() method has quite a bit of logic to create different types of form inputs depending on the corresponding table column type. If it is "text" the helper will create a textarea element. The WYSIWYG stuff, though, is javascript all the way. There's likely some code somewhere that applies FCEditor, Jquery.wysiwyg, or similar to certain textareas. BTW, the last 2 inputs, from their field names, don't seem to me like they should be textareas. I'd check your DB schema. Rather than type "text", I'd expect them to be "VARCHAR". Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en To unsubscribe, reply using "remove me" as the subject.
