Hi,

Just wondering if you ever plan on releasing a version of Image Picker that allows users to have "filtered html" as their default text filtering option instead of the Full Html? I have a lot of users on my site and would like to use this module for them to use with their blogs, but I simply cannot allow them to have access to "Full Html" formatting of text fields. Far too many security problems exist by enabling this, so I was hoping a filtered html version would be in the works.

Let us know,

Thanks!

Comments

hutch’s picture

Just add <img> to your HTML filter, and possibly <span> as well, plus any other tags you think they might need.

You can configure filters under admin/settings/filters

daphisto’s picture

Ah, very nice. Ok, got the img and span tags all entered into the allowed filter and it seems to work great! The only thing I noticed is that the style align tags were stripped out. :(

Any ideas?

hutch’s picture

Yes, drupal strips inline styling but you could add two classes to your stylesheet and use them instead of float:right and float:left
eg

.imgp-fright{
  float: right;
}
.imgp-fleft {
  float: left;
}

and use

class="imgp-fright"
class="imgp-fleft"

on the settings page

daphisto’s picture

Hi Hutch,

Thanks for the response! Just wondering, which settings page do I add the classes to? I am not seeing anything on the ImagePicker settings page. I am using 5.x-1.0 of Image Picker.

Thanks,

hutch’s picture

At the bottom of
admin/settings/imagepicker

Default Float left code: *
class="imgp-fleft"

Default Float right code: *
class="imgp-fright"

and add the styles to style.css for your theme

daphisto’s picture

Status: Active » Fixed

Hey Hutch,

Thanks for the tip! Works great!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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