Hello Drupal wizzards!

-TinyMCE is working on my site.
-I have a node on my site that has a < textarea> < /textarea> (i made a form on that node)
-I would like to integrate TinyMCE with that textarea that I have made

Any link that will teach me how to do it is HIGHLY appreciated!

Thanks :)

Comments

drupalfantwo’s picture

I hope this will be useful someday for you :)

1. Install TinyMCE Module
2. Make a profile in ADMIN-TinyMCE and in the visibility part enter the node; if your node has a URL alias enter that alias as well
3. Make sure the user who will use/need the page is granted the role name that you have defined in #2

Below is a sample code

< textarea name=edit-text id=edit-text cols=30 rows=5>< /textarea>
<?php
	$element=array();
	$element['#id']='-text';
	$element=tinymce_process_textarea($element);								
?>

note:

  • 'edit-' is a needed prefix for your textarea's ID and NAME attribute
  • remove the prefix 'edit' when defining your text area with tiny mce (e.g. $element['#id']='-text'; )
  • drupalfantwo’s picture

    I need to delete this... I clicked reply twice... (silly me :( )