I would like to use Adaptive image along with the Insert Module to provide a way for content editors to include responsive images inline.

I am working on a patch that should allow that to work.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

atorockio’s picture

Status: Active » Needs work
FileSize
1.02 KB

Here is my patch fo so far.

I used a preprocess function to change template variables to make them work with Adaptive Image and added a template suggestion to use a different template for adaptive images inserted with the insert module.

There is modified template file that I took from Insert. Currently, it will not be used and there must be a tpl.php in the the active theme for this to work. I just printed the $typof variable which I created in my preprocess function. I have been searching for a way to override Insert Module's tpl.php with this one in the Adaptive Image Module's folder (only for adaptive images) but have not found it. Any suggestions for that?

I am also hoping for feedback on my approach to solving this problem.

sanduhrs’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Status: Needs work » Needs review
mengi’s picture

Applied the patch but nothing happened. Adaptive image style is still not applied. Using WYSIWYG module with ckeditor 3.6.6.1

chefnelone’s picture

I'm also interested to use adaptive images with the insert module.

AlexJ’s picture

Yes that would be very useful, subscribing to this issue