Posted by ufku on
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
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Content, Developer, Filters/Editors, JavaScript Utilities
- Reported installs: 1,031 sites currently report using this module. View usage statistics.
- Downloads: 14,834
- Last modified: December 2, 2014
Stable releases are covered by the security advisory policy.
Look for the shield icon below.
Downloads
Version | Download | Date |
---|---|---|
7.x-1.1 |
tar.gz (9.06 KB) | zip (10 KB) | 2013-Dec-17 |