
======================================================
INSTALLATION
======================================================
1. Unpack the node_embed folder and contents in the appropriate modules directory 
   of your Drupal installation.  Normally sites/all/modules/
   
2. Enable the node_embed module on the Modules admin page (admin/build/modules)

3. Next, configure your sites' input filters (admin/settings/filters) to use the 
   'Insert node' filter. 

======================================================
USAGE
======================================================
After installation, the variable, 'node_embedded', will be available from the $variables
variable.  The variable is a simple TRUE / FALSE field.

======================================================
CKEditor INTEGRATION
======================================================
Under the node_embed directory, there is the 'ckeditor/NodeEmbed' directory, 
that will provide a tool bar plugin for ckeditor.

To configure the plugin:
1. Copy the NodeEmbed directory to sites/all/modules/ckeditor/plugins directory.
 
2. Add lines below to ckeditor.config.js to enable NodeEmbed as a plugin: 
  config.extraPlugins += (config.extraPlugins ? ',NodeEmbed' : 'NodeEmbed' );
  CKEDITOR.plugins.addExternal('NodeEmbed', Drupal.settings.ckeditor.module_path+'/plugins/NodeEmbed/');

3. Then add the NodeEmbed plugin to a ToolbarSet for your tool set, e.g.
   ['Link','Unlink','NodeEmbed','Anchor','LinkToNode', 'LinkToMenu'], 
   For more information, see http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Toolbar

4. Select the correct drupal toolbar from the ckeditor settings page.

5. Enable the default view 'ckeditor-node-embed' (if its not already enabled).  This view provides the content of the 
   plugin dialog box.

======================================================
Wysiwyg INTEGRATION
======================================================
Node Embed now implements the Wysiwyg api and can be easily integrated with Wysiwyg editors through
that interface.

To configure the plugin:
1. Install the Node Embed Module
2. Go to the Wysiwyg configuration page - Site Configuration -> Wysiwyg and add the node embed button to the 
proper profiles.
3. Enable the default view 'ckeditor-node-embed' (if its not already enabled).  This view provides the content of the 
   plugin dialog box.
4. Thats it - you should now see the Embed node button in the editor
