Drupal.org is where we build community. Join us today.
Posted by ufku on , updated
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
- Module categories: Content, Developer, Filters/Editors, JavaScript Utilities
885 sites report using this module
15,473 downloadsStable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Downloads
7.x-1.1
✓ Recommended by the project’s maintainer.
⬇ Download tar.gz (9.06 KB) | zip (10 KB)
Development version: 7.x-1.x-dev updated 30 Sep 2013 at 15:04 UTC