All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Images not parsed when using "formatting" parameter

Derek 4 Sep 2014 18:53 idea, pending

When passing a custom formatting plugin to the :single or :parse tag for a textarea variable, the Typography class is instantiated with its defaults, which includes "allow_img_url" being set to "n".

As a result, any image tags inside the variable are stripped, leaving only a string with the image path.

Maybe there needs to be an "allow_images" parameter on the :parse tag, or maybe as a per-variable setting?

Or just change:

$options = array('text_format' => $format);


To:

$options = array('text_format' => $format, 'allow_img_url' => 'y');


In vt.low_textarea.php.

Replies

  1. Low 5 Sep 2014 06:30

    Ah yes, a new setting for that variable type might be the way to go. I'm changing this to a Feature Request, as it looks like you've solved the issue for yourself.