Custom Editor for a node based on type Using Drupal 7, I'm working on a module and want to have it so when the module is installed it will set a new node type called "project" When a user is adding/editing a $note->type="project" I want to bring up a custom editor for my module that is for that node type. I have been looking for tutorials for nodes and editors for nodes but I wasn't able to find any good examples of making a custom node type and making and assigning a custom editor for a node type.

I also don't know what hooks I need to use to target the node editor. As of right now I'm following the steps from the following tutorial. http://www.sitepoint.com/creating-a-new-drupal-node-type/
The WYSIWYG module allows embedding any supported WYSIWYG editor to a field via a hook_form_alter()/hook_form_FORM_ID_alter() invocation. Here's a link to its documentation page. You can alter your custom node type form by altering the its body field #type &amp; #format elements.

Note: To do this it also requires:


The WYSIWYG libraries pre-installed to the sites/all/libraries directory.
A pre-existing WYSIWYG profile created.


As such, you'll need to have add a wysiwyg dependency in your module's .info file and some how do the above work in #1/#2 inside your  hook_install invocation.