Hello group,
I'm trying to use the TinyMCE for rich text editing a |<textarea>| tag.
I tried this:
<tr>
<th>Content:</th>
<td><?php echo object_textarea_tag($user_blog_article, 'getContent',
'rich=true size=10x20') ?></td>
</tr>
but the rich text editing is the activated for the whole form and not
just for the textarea..?
Do I have to declare a separate form? What am I doing wrong?
Plz, help,.. Thx in advance.
here the whole template (generated from crud, just changed the textarea
to rich=true):
<?php use_helper('Object') ?>
<?php echo form_tag('userBlogCRUD/update') ?>
<?php echo object_input_hidden_tag($user_blog_article, 'getId') ?>
<table>
<tbody>
<tr>
<th>Title:</th>
<td><?php echo object_input_tag($user_blog_article, 'getTitle', array (
'size' => 80,
)) ?></td>
</tr>
<tr>
<th>Content:</th>
<td><?php echo object_textarea_tag($user_blog_article, 'getContent',
'rich=true size=10x20') ?></td>
</tr>
</tbody>
</table>
<hr />
<?php echo submit_tag('save') ?>
<?php if ($user_blog_article->getId()): ?>
<?php echo link_to('delete',
'userBlogCRUD/delete?id='.$user_blog_article->getId(),
'post=true&confirm=Are you sure?') ?>
<?php echo link_to('cancel',
'userBlogCRUD/show?id='.$user_blog_article->getId()) ?>
<?php else: ?>
<?php echo link_to('cancel', 'userBlogCRUD/list') ?>
<?php endif; ?>
</form>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---