Some Georgia Tech Drupal users have encountered a bug where CKEditor/WYSIWYG settings were wrapping standalone images in paragraph tags. To fix this problem, follow the two steps below.
Step 1. Adjust Your Theme's template.php.
In your theme’s template.php
file, add:
/**
* Implements hook_wysiwyg_editor_settings_alter()
*/
function THEMENAME_wysiwyg_editor_settings_alter(&$settings, $context) {
if ($context['profile']->editor == 'ckeditor') {
$settings['autoParagraph'] = FALSE;
}
}
Be sure to replace "THEMENAME" with the actual machine name of your theme. For the standard GT theme, the function name would be gt_wysiwyg_editor_settings_alter
Step 2. Adjust Your Text Format.
In your browser, go to {domain}/admin/config/content/formats
and modify each text format that your site is actively using. F or your specified text formats (here I’m listing the Advanced one), located at , make sure that the option "Convert line breaks into HTML (i.e. <br>
and <p>
)" is turned off.