Provides an AJAX API for creating filtered content by applying drupal input filters.
Features
- supports BBCode, Markdown, Textile, HTML, PHP, and any other markup system provided as a drupal module
- provides an ajaxified version of check_markup() of drupal
- provides "access ajax markup" user permission
- fully integrated into BUEditor. Button code:
6.x-1.x:php: return module_invoke('ajax_markup', 'on') ? 'js: eDefAjaxPreview();' : '';
6.x-2.x:js: E.prvAjax();
How to integrate (for developers)
- Load the API by calling ajax_markup_on() at server side.
if (module_invoke('ajax_markup', 'on')) { drupal_add_js(YOUR_SCRIPT.js); } - Inside YOUR_SCRIPT.js call $.ajaxMarkup
$.ajaxMarkup(INPUT, INPUT_FORMAT, CALLBACK); function CALLBACK(OUTPUT, SUCCESS, REQUEST) { if (SUCCESS) $('div#preview').html(OUTPUT); else alert(OUTPUT); }
Project information
- Project categories: Content editing experience, Developer tools
143 sites report using this module
- Created by ufku on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.