You are here

README.txt in Entity Embed 7.2

Same filename and directory in other branches
  1. 7.3 README.txt
  2. 7 README.txt
CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Requirements
 * Installation
 * Usage

INTRODUCTION
------------

Current Maintainers:

 * Devin Carlson <http://drupal.org/user/290182>

Entity Embed allows any entity to be embedded using a text editor.

REQUIREMENTS
------------

Entity Embed requires Drupal 7.37 or later. It has six dependencies and needs
two libraries.

Drupal core modules
 * Filter

Contributed modules
 * Chaos Tools
 * CKEditor - The latest development release.
 * Dialog
 * Entity
 * jQuery Update - Configured to use jQuery 1.7 or higher.

Libraries
 * CKEditor - Version 4.3 or later.
   http://ckeditor.com/download
 * CKEditor Line Utilities plugin
   http://ckeditor.com/addon/lineutils
 * CKEditor Widget plugin
   http://ckeditor.com/addon/widget

INSTALLATION
------------

* Install Entity Embed via the standard Drupal installation process:
  'http://drupal.org/node/895232'.
* If you weren't previously using the CKEditor WYSIWYG client-side editor,
  download the CKEditor library (http://ckeditor.com/download) and extract it to
  'sites/all/libraries' or 'sites/sitename/libraries' as you require. The
  extracted folder must be named 'ckeditor'.
* Download the Line Utilities plugin (http://ckeditor.com/addon/lineutils),
  extract it and move it into the 'plugins' directory of the 'ckeditor' folder
  so that it is available at 'ckeditor/plugins/lineutils'.
* Download the Widget plugin (http://ckeditor.com/addon/widget), extract it and
  move it into the 'plugins' directory of the 'ckeditor' folder so that it is
  available at 'ckeditor/plugins/widget'.
* Configure the jQuery Update module to use jQuery 1.7 or higher:
  '/admin/config/development/jquery_update'.
* Enable the entity-embed filter 'Display embedded entities' for the desired
  text formats from the Text Formats configuration page:
  '/admin/config/content/formats'.
* If the 'Limit allowed HTML tags' filter is enabled, add
  '<drupal-entity data-entity-type data-entity-uuid data-entity-id data-view-mode data-entity-embed-display data-entity-embed-settings>'
  to the 'Allowed HTML tags'.
* Optionally enable the filter-align filter 'Align embedded entities' to allow
  positioning of embedded entities.
* To enable the WYSIWYG plugin, move the entity-embed 'E' button into the
  Active toolbar for the desired text formats from the CKEditor configuration
  page: '/admin/config/content/ckeditor'.
* Disable CKEditor's Advanced Content Filter for each of the text formats.

By default, Entity Embed includes a single button for embedding nodes.
Additional buttons can be added from the configuration page:
'/admin/config/content/embed-button'.

USAGE
-----

Embedding entities with WYSIWYG:

* For example, create a new *Article* content.
* Click on the 'E' button in the text editor.
* Enter part of the title of the entity you're looking for and select one of the
  search results.
* For **Display as**, choose one of the following options:
  * Default
  * Full content
  * RSS
  * Search index
  * Search result highlighting input
* Optionally, choose to align left, center or right.

Embedding entities without WYSIWYG:

Users should be embedding entities using the CKEditor WYSIWYG button as
described above. This section is more technical about the HTML markup that is
used to embed the actual entity.

Embed by UUID (recommended: requires the UUID module):
<drupal-entity data-entity-type="node" data-entity-uuid="07bf3a2e-1941-4a44-9b02-2d1d7a41ec0e" data-view-module="teaser" />

Embed by ID (not recommended):
<drupal-entity data-entity-type="node" data-entity-id="1" data-view-mode="teaser" />

The above examples render the entity using the _teaser_ view mode.

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Installation
  6. * Usage
  7. INTRODUCTION
  8. ------------
  9. Current Maintainers:
  10. * Devin Carlson
  11. Entity Embed allows any entity to be embedded using a text editor.
  12. REQUIREMENTS
  13. ------------
  14. Entity Embed requires Drupal 7.37 or later. It has six dependencies and needs
  15. two libraries.
  16. Drupal core modules
  17. * Filter
  18. Contributed modules
  19. * Chaos Tools
  20. * CKEditor - The latest development release.
  21. * Dialog
  22. * Entity
  23. * jQuery Update - Configured to use jQuery 1.7 or higher.
  24. Libraries
  25. * CKEditor - Version 4.3 or later.
  26. http://ckeditor.com/download
  27. * CKEditor Line Utilities plugin
  28. http://ckeditor.com/addon/lineutils
  29. * CKEditor Widget plugin
  30. http://ckeditor.com/addon/widget
  31. INSTALLATION
  32. ------------
  33. * Install Entity Embed via the standard Drupal installation process:
  34. 'http://drupal.org/node/895232'.
  35. * If you weren't previously using the CKEditor WYSIWYG client-side editor,
  36. download the CKEditor library (http://ckeditor.com/download) and extract it to
  37. 'sites/all/libraries' or 'sites/sitename/libraries' as you require. The
  38. extracted folder must be named 'ckeditor'.
  39. * Download the Line Utilities plugin (http://ckeditor.com/addon/lineutils),
  40. extract it and move it into the 'plugins' directory of the 'ckeditor' folder
  41. so that it is available at 'ckeditor/plugins/lineutils'.
  42. * Download the Widget plugin (http://ckeditor.com/addon/widget), extract it and
  43. move it into the 'plugins' directory of the 'ckeditor' folder so that it is
  44. available at 'ckeditor/plugins/widget'.
  45. * Configure the jQuery Update module to use jQuery 1.7 or higher:
  46. '/admin/config/development/jquery_update'.
  47. * Enable the entity-embed filter 'Display embedded entities' for the desired
  48. text formats from the Text Formats configuration page:
  49. '/admin/config/content/formats'.
  50. * If the 'Limit allowed HTML tags' filter is enabled, add
  51. ''
  52. to the 'Allowed HTML tags'.
  53. * Optionally enable the filter-align filter 'Align embedded entities' to allow
  54. positioning of embedded entities.
  55. * To enable the WYSIWYG plugin, move the entity-embed 'E' button into the
  56. Active toolbar for the desired text formats from the CKEditor configuration
  57. page: '/admin/config/content/ckeditor'.
  58. * Disable CKEditor's Advanced Content Filter for each of the text formats.
  59. By default, Entity Embed includes a single button for embedding nodes.
  60. Additional buttons can be added from the configuration page:
  61. '/admin/config/content/embed-button'.
  62. USAGE
  63. -----
  64. Embedding entities with WYSIWYG:
  65. * For example, create a new *Article* content.
  66. * Click on the 'E' button in the text editor.
  67. * Enter part of the title of the entity you're looking for and select one of the
  68. search results.
  69. * For **Display as**, choose one of the following options:
  70. * Default
  71. * Full content
  72. * RSS
  73. * Search index
  74. * Search result highlighting input
  75. * Optionally, choose to align left, center or right.
  76. Embedding entities without WYSIWYG:
  77. Users should be embedding entities using the CKEditor WYSIWYG button as
  78. described above. This section is more technical about the HTML markup that is
  79. used to embed the actual entity.
  80. Embed by UUID (recommended: requires the UUID module):
  81. Embed by ID (not recommended):
  82. The above examples render the entity using the _teaser_ view mode.