Hi everyone,

i am using advanced image plugin, and the alignment I get after saving my node is different that the one i have in my editor : images are not aligned correctly.
I have thought about using wysiwyg_filter, it works ok, but i need to insert objects, iframes... and it is not allowed with this module... Anyone to help me ?

Thanks

Comments

SophieG’s picture

Status: Active » Fixed

Ok i have found one solution (thanks to http://www.toodlepip.co.uk/blog/2009/12/using-iframes-drupals-wysiwyg-mo...) : i've created a module with the following code :

<?php
/**
 * Implementation of hook_wysiwyg_editor_settings_alter().
 * 
 */
function img_tinymce_extended_wysiwyg_plugin($editor, $version) {
  switch($editor) {
    case 'tinymce':
      return array(
        'iframe' => array(
          'extensions' => array('images' => t('Image Fix')),
          'extended_valid_elements' => array('img[*]'),
          'load' => FALSE,
          'internal' => TRUE,
          ),
      );
  }
}

I have to enable it on my wysiyg page, and it works perfectly !

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.