I am using prvAjax on a custom textarea in my form. The textarea name is not recognized by $.ajaxMarkup.getFormat(), i.e. it's not a node body or comment. Therefore the preview filter is falling back to the Default input format.

function ajax_markup() {} in ajax_markup.module allows for forcing custom formats, so let's use that feature.

e.g. prvAjax(4) would force filter format 4 on the preview.

Comments

ufku’s picture

Version: 6.x-2.5 » 6.x-2.x-dev
Status: Active » Fixed

Committed to dev.
E.prvAjax(format, callback):
format defaults to selected format or site's default format if missing or inaccessible.
callback defaults to Drupal.attachBehaviors that renders the loaded content.

fenda’s picture

This is great! What can I do to help get this pushed into the production version?

ufku’s picture

Just wait :)

Status: Fixed » Closed (fixed)

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