README 784 B

123456789101112131415161718192021222324252627282930
  1. The Oembed plugin for using and representing oEmbed data.
  2. See: http://www.oembed.com/
  3. Installation
  4. ============
  5. This plugin is enabled by default
  6. Settings
  7. ========
  8. width: Maximum width of the thumbnail in pixels.
  9. height: Maximum height of the thumbnail in pixels.
  10. show_html: Whether to show HTML oEmbed data.
  11. domain_whitelist: Array of regular expressions. Always escape your dots and end your strings.
  12. check_whitelist: Whether to check the domain_whitelist.
  13. Example
  14. =======
  15. $config['thumbnail']['width'] = 42;
  16. $config['thumbnail']['height'] = 42;
  17. $config['attachments']['show_html'] = true;
  18. addPlugin('Oembed', array(
  19. 'domain_whitelist' => array(
  20. '^i\d*\.ytimg\.com$' => 'YouTube',
  21. '^i\d*\.vimeocdn\.com$' => 'Vimeo'
  22. ),
  23. 'check_whitelist' => true
  24. ));