Closed (fixed)
Project:
BUEditor
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2011 at 04:43 UTC
Updated:
5 Dec 2011 at 22:10 UTC
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
Comment #1
ufku commentedCommitted 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.
Comment #2
fenda commentedThis is great! What can I do to help get this pushed into the production version?
Comment #3
ufku commentedJust wait :)