wysiwyg_linebreaks.module in Wysiwyg Linebreaks 7
Same filename and directory in other branches
Module adds a Wywisyg API plugin that converts p and br tags to linebreaks, and vice-versa.
File
wysiwyg_linebreaks.moduleView source
<?php
/**
* @file
*
* Module adds a Wywisyg API plugin that converts p and br tags to linebreaks,
* and vice-versa.
*/
/**
* Implements hook_wysiwyg_include_directory().
*/
function wysiwyg_linebreaks_wysiwyg_include_directory($type) {
switch ($type) {
case 'plugins':
return $type;
}
}
/**
* Implements hook_init().
*/
function wysiwyg_linebreaks_init() {
// Add CSS to hide toolbar buttons
// @todo - don't load this on every page - only pages where WYSIWYG textfields
// might appear. (hook_init() might not be our best option).
drupal_add_css(drupal_get_path('module', 'wysiwyg_linebreaks') . '/wysiwyg_linebreaks.css');
}
Functions
Name | Description |
---|---|
wysiwyg_linebreaks_init | Implements hook_init(). |
wysiwyg_linebreaks_wysiwyg_include_directory | Implements hook_wysiwyg_include_directory(). |